Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: Operators in -reg- or -xtreg-


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Operators in -reg- or -xtreg-
Date   Thu, 12 Aug 2010 18:01:12 +0200

<>

As in:

***********
sysuse auto, clear
gen weightsq=weight^2
reg price weight weightsq
reg price weight c.weight#c.weight
***********


HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Donnerstag, 12. August 2010 17:57
To: [email protected]
Subject: st: RE: Operators in -reg- or -xtreg-


<>

If you do have Stata 11, try -help fvvarlist-...


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Hobst
Sent: Donnerstag, 12. August 2010 17:51
To: [email protected]
Subject: st: Operators in -reg- or -xtreg-

Hello

Is it somehow posible to use operators directly inside the regression code?

for example -xtreg y x (x)^2 , fe didnt work

do i always need to generate a new variable first?

gen x2=x^2
xtreg y x x2, fe

Thanks for your help


-- 
View this message in context:
http://statalist.1588530.n2.nabble.com/Operators-in-reg-or-xtreg-tp5416682p5
416682.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index