Statalist


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

Re: st: xtmixed & PROC MIXED


From   Scott Baldwin <baldwinlist@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xtmixed & PROC MIXED
Date   Fri, 18 Dec 2009 08:58:19 -0700

You want the following on the RANDOM line:

random visit/type=un subject=PTNO;

The type=un gives you the unstructured covariance matrix that you
asked for in the xtmixed code.

Hopefully that resolves the issue. If not, I'm not sure what else to
recommend without seeing the data. Best of luck.

Best,
Scott




On Fri, Dec 18, 2009 at 3:05 AM, Lucas Goossens <goossens@bmg.eur.nl> wrote:
> Thanks Scott,
> Next month, I am switching to Stata 11. So I will have to wait until I can
> try out your code.
> Meanwhile, changing the REPEATED statement in SAS to RANDOM does not get me
> the Stata results... Variances and constant are different, and covariances
> are not produced.
> Lucas
>
>
> *
> *   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   |   What's new   |   Site index