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

Re: st: Predict command after a poisson model?


From   "maartenbuis" <[email protected]>
To   [email protected]
Subject   Re: st: Predict command after a poisson model?
Date   Thu, 20 Jan 2005 13:29:26 -0000

--- Wilson.Sama@u... wrote:
> First we wish to predict the outcome for a single observation. What 
> is the Stata command for this.

after -poisson- you can use predict, which will put predicted values 
in a variable of your choice (say predn). 

If you want to see the predicted value for the 16th observation you 
can use: -list predn in 16-

If you want to see all the predictions whose value for X1 is 1 you 
can use: -list predn if X1==1

> 
> Secondly we wish to predict the mean outcome for X1 = 1, 
> irrespective of the values of the other variables. What is the 
> command for this.
> 

-summary predn if X1==1-



*
*   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