Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Graphing ploynomial relationships after a regression


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Graphing ploynomial relationships after a regression
Date   Tue, 18 Oct 2005 16:48:19 +0200

sysuse auto, clear
gen weight2 = weight^2
reg price weight weight2
sum weight
twoway function y = _b[_cons]+_b[weight]*x+_b[weight2]*x^2, range(1760 4840)


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Tinna
Sent: dinsdag 18 oktober 2005 16:35
To: statalist@hsphsun2.harvard.edu
Subject: st: Graphing ploynomial relationships after a regression

Dear Statalisters,

I am using an independent variable in its regular and squared forms in
an OLS and 2SLS regressions.  Can I graph this polynomial relationship
as indicated by the regression in an easy way?

Thanks
Tinna

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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