Statalist


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

st: RE: Quadratic regression


From   "Kieran McCaul" <[email protected]>
To   <[email protected]>
Subject   st: RE: Quadratic regression
Date   Tue, 17 Feb 2009 12:24:57 +0900

gen X2 = X^2
regress Y X X2

______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2140
Fax: (08) 9224 8009
email: [email protected]
http://myprofile.cos.com/mccaul 
http://www.researcherid.com/rid/B-8751-2008
______________________________________________
The fact that no one understands you doesn't make you an artist.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Shell makka
Sent: Tuesday, 17 February 2009 12:19 PM
To: [email protected]
Subject: st: Quadratic regression

Dear statalist


It would be greatly appreciated if you can answer my question.
I would like to fit a quadratic regression Model (Y=a+bX+cX^2) on my
data and do predictions , would you please let me know what will be
the code for that in stata?


Many thanks,
Shell
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index