Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Squared terms divided by 100 with factor variables


From   Nikolaos Kanellopoulos <nkkanel@yahoo.gr>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Squared terms divided by 100 with factor variables
Date   Mon, 22 Oct 2012 14:41:46 +0100 (BST)

Dear all,

I want to estimate the following:
webuse lbw , clear
ta race , gen(r)
gen r2age=r2*age
gen r3age=r3*age
gen agesq2=age*age/100
gen r2agesq2=r2*agesq2
gen r3agesq2=r3*agesq2

logit low lwt age agesq2 r2 r3 r2age r3age r2agesq2 r3agesq2 ,nolog


ie low = lwt age (age^2)/100 race age*race race*(age^2)/100

Can I do that using only with factor variables but without constructing age^2/100? 

Thanks in advance
Nikos


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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index