Statalist


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

st: Stata 10: How can I get predicted probabilities after xtmelogit, for model and variables?


From   "Miangotar Yode" <yode.miangotar@umontreal.ca>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Stata 10: How can I get predicted probabilities after xtmelogit, for model and variables?
Date   Sat, 11 Jul 2009 16:02:26 -0400

Hi,
 
After runing xtmelogit, I get predicted probabilities for the model. But when I want to get it for variables in the model, I receive an error message r(459): "data have changed since estimation"
 
For details, see below:
 
xtmelogit _d parente2 parente3 parente4 survie2 survie3 survie4 genera2 ratio2 ratio3 family2 ///
   consoc2 consoc3 discuter2 scolarise2 scolarise3 religion1 religion3 groupe2 amimemegpe2 ///
   amimemegpe3 amidiffegpe2 amidiffegpe3 nofadisc2  ageado1 ageado2 ageado4 ageado5 ///
   ageado6 ageado7 ageado8 tertile2 tertile3 educhefm2 educhefm3 ethniegpe2 ethniegpe3 ///
   ethniegpe4 ethniegpe5 ethniegpe6 ethniegpe7 ethniegpe8 ///
   region2 || idcode: || id:, intpoints(5) refineopts(iterate(0))
 
---
.
.
.
---
 
. predict entree
(773 missing values generated)
(option mu assumed; predicted means)
. sum entree
    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
      entree |     42335    .0138184    .0179376   .0005034   .1248887
 
. predict entree_parente1
data have changed since estimation 
r(459);
end of do-file
r(459);

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