Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Generating variables raised to the power of...


From   statalist <[email protected]>
To   [email protected]
Subject   Re: st: Generating variables raised to the power of...
Date   Fri, 05 May 2006 17:34:57 +0200

Gauri Khanna schrieb:

Dear Stata list,

I would like to generate two variable which is raised to the power of (0.11) and (-.023).

Hence I would like to do the following:

generate X1=X1 raised to .11
genreate X2=X2 raised to -.023
replace  x1=x1^.11


How can I do this in stata?

Thank you,

Regards,

Gauri

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.com/

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index