Shell,
Here is an example with the auto data.
. sysuse auto
. gen weight2 = weight^2
. regress mpg weight weight2
. predict pmpg
Friedrich
On Mon, Feb 16, 2009 at 10:18 PM, Shell makka <[email protected]> wrote:
> 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/