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: [email protected] [mailto:[email protected]]On Behalf Of Tinna
Sent: dinsdag 18 oktober 2005 16:35
To: [email protected]
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/