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

st: RE: regression


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: regression
Date   Thu, 9 Oct 2003 14:41:41 +0100

valerie lemieux

> I have a very simple regression:
> 
> prate = Bo + B1mrate + E
> 
> I run the regression and find the value of Bo and B1.
> 
> I want to find the predicted value of prate when mrate=3.5,
> What Stata command can I use to do that?

di _b[_cons] + _b[mrate] * 3.5 

> How can I do a histogram of the residuals of my regression?

predict res, res 
histogram res 

_or_ 

ssc inst rdplot 
rdplot histogram

Notes: 

1. You need only -ssc inst rdplot- once.

2. -rdplot- offers other plottypes and various options. 

Nick 
[email protected] 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index