Statalist


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

Re: st: Quadratic regression


From   Shell makka <[email protected]>
To   [email protected]
Subject   Re: st: Quadratic regression
Date   Tue, 17 Feb 2009 14:40:34 +1100

Thank you all so much for your fast responses

On Tue, Feb 17, 2009 at 2:27 PM, Joseph McDonnell <[email protected]> wrote:
> . gen x2 = x^2
> . reg y x x2
> . predict yhat, xb
>
> Cheers
>
> Joseph
>
> On Tue, Feb 17, 2009 at 12:48 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/
>>
> *
> *   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