Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Mark McCann <mark.mccann@qub.ac.uk> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: Retrieving random effect estimates |
Date | Mon, 24 Jan 2011 16:27:32 +0000 |
I'm sorry, I didn't explain myself very well, it's not the predictions themselves but the onscreen estimates from the model table I want to extract. I can't work out how to get these having looked at the help file and the pdfs. I'm sure it's something simple but I really can't find it from these documents. Please let me rephrase my question. I have run the following model xi: xtmixed audit monitor i.living || schoolid: monitor i.living, nostd var mle covariance(unstructured) and I want a way to take the estimates from the on screen model to run, for example display var(_cons) + 2*cov(living2, _cons) + var(living2) Another example I have run xtmixed money centredyear year2 || pupilid: year, variance nostderr mle cov(unstructured) and want something like this twoway (function Upper= _b[_cons] + _b[centredyear]*x + _b[year2]*x^2 + (1.96*sqrt(var(_cons)^2 + 2*cov(_cons, centredyear)*x + var(year)*x^2)) Many thanks, Mark See e.g. help xtmixed postestimation Nick n.j.cox@durham.ac.uk Mark McCann Research Statistician Improving Children's Lives Institute of Child Care Research Queen's University Belfast 6 College Park Belfast BT7 1LP Tel: +44(0)28 9097 3163 Improvingchildrenslives.org * * 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/