Thanks for your response. I still have a statement regarding the followig answer
below
"If you want to see all the predictions whose value for X1 is 1 you
can use: -list predn if X1==1 "
I don't want all the predictions whose value for X1 is equal to 1. I want just a
single prediction for X1= 1 adjusted for all other variables.
Thanks
Quoting maartenbuis <[email protected]>:
> --- 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/
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
*
* 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/