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

st: Re: Quadratic regression

From   "Martin Weiss" <>
To   <>
Subject   st: Re: Quadratic regression
Date   Tue, 17 Feb 2009 08:15:45 +0100


Three responses advised you to create a new variable and then use -regress-. Note, though, that a better option would be to use -nl-

nl (y = {a} + {b1}*x + {b2}*x^2), variables(x)

as in

which would allow Stata to know that x and x squared "move in tandem" and calculate the correct marginal effects...

----- Original Message ----- From: "Shell makka" <>
To: <>
Sent: Tuesday, February 17, 2009 4:18 AM
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,
*   For searches and help try:

*   For searches and help try:

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