Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Getting predicted values from xtpoisson, fe


From   Phil Clayton <philclayton@internode.on.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Getting predicted values from xtpoisson, fe
Date   Thu, 22 Dec 2011 22:20:24 +1100

-predict- will give you predictions for individual observations, but for particular combinations of variables you might be better off using -margins- eg:
margins, at(age=15 schooling=9) predict(iru0)

Phil

On 21/12/2011, at 10:45 PM, Muhammad Anees wrote:

> Have you gone through the help file for -xtpoisson-, if not then here
> is the detailed discussion from within Stata.
> help xtpoisson postestimation##predict
> 
> On Wed, Dec 21, 2011 at 4:26 PM, Ian Macmillan
> <ross.macmillan@unibocconi.it> wrote:
>> Hello,
>> 
>> I have a relatively simple model with three covariates and an product-term (e.g., age, sex, education, sex_by_education) and a fixed effects poisson model (i.e., xtpoisson..., fe).  What I am interested in is getting predicted values based on the coefficients for particular combinations of variables (e.g., a fifteen year old girl with 9 years of schooling).  Ultimately, we want to aggregate across ages to derive a cumulative age-graded profile of the outcome.  I can't for the life of me figure out how to do this.  Any help/advice would be greatly appreciated...
>> 
>> Ross
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
> 
> 
> 
> -- 
> 
> Best
> ---------------------------
> Muhammad Anees
> Assistant Professor/Programme Coordinator
> COMSATS Institute of Information Technology
> Attock 43600, Pakistan
> http://www.aneconomist.com
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index