[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: Linear Regression |

Date |
Fri, 8 Aug 2008 14:39:23 +0100 |

I am not clear what your question is precisely. But if you want to -regress- on something and its square, you need to -generate- the square as a new variable before you can do it, unless it exists already. I am not clear what you mean by "efficient", but I don't think there is another way to do it. Nick n.j.cox@durham.ac.uk Meric Osman I have a problem about writing my regression equation. I want to add the variable and its square at the same time. Such as y = a + a^2 + ... Actually, I can do it by generating a new variable which is a*a, but I don't wanna do that because it is not an efficient way. * * 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/

**Follow-Ups**:**Re: st: RE: Linear Regression***From:*Steven Samuels <sjhsamuels@earthlink.net>

**Re: st: RE: Linear Regression***From:*"Brian P. Poi" <bpoi@stata.com>

**References**:**st: Linear Regression***From:*Meric Osman <meo542@mail.usask.ca>

- Prev by Date:
**RE: st: Looking up which observation has a particular value** - Next by Date:
**st: RE: RE: Autocorrelation in Poisson regression** - Previous by thread:
**st: Linear Regression** - Next by thread:
**Re: st: RE: Linear Regression** - Index(es):

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