Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Extracting coefficients from xtmixed model


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Extracting coefficients from xtmixed model
Date   Wed, 29 Jun 2011 21:20:38 +0200

On Wed, Jun 29, 2011 at 8:07 PM, Debs Majumdar wrote:
>    I have an unbalanced data set with 6 visits and the sample size goes down from around 900 at baseline to 480 at the last visit. I wanted to extract the estimate for visit from my longitudinal data. One of my fellow colleagues asked me to use
>
>
>    statsby , by(rid): regress dep_A visit,
>
>  which give me "_b_visit" in the output. First, Is this a good way to do this? I would rahter fit a mixef effects model.

That is not wrong, it will probably give you estimates that are more
variable than  you would get from a mixed effects model.

> I was thinking of the following model and extracting"_b_visit" for the participants. How does one do it in Stata?
>
> xtmixed dep_A visit bvol hcv whitmathyp ||rid:visit, cov(uns)

with -predict re*, re-, see -help xtmixed postestimation- and within
that helpfile go to the section on -predict-.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index