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: Squared terms divided by 100 with factor variables
From
Nikolaos Kanellopoulos <[email protected]>
To
"[email protected]" <[email protected]>
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/