Statalist


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

st: adjusted counts after xtmepoisson


From   rlhall@umich.edu
To   statalist@hsphsun2.harvard.edu
Subject   st: adjusted counts after xtmepoisson
Date   Mon, 21 Sep 2009 12:24:49 -0400

I am running a crossed random effects model using xtmepoisson, after which I want to generate estimated counts and confidence intervals at different levels of X1 and X2. The documentation suggests that the new "margins" command should be able to handle this -- it is listed as an option after xtmepoisson -- but I get the error message: "default prediction is a function of possibly stochastic quantities other than e(b)". Using the "force" option only generates the error message: "data have changed since estimation"

xtmepoisson y x1 x2 || _all:R_group_j || group_i:, mle
(output omitted)
margins, predict(mu) atmeans


Thanks!
*
*   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   |   What's new   |   Site index