Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Xtmixed from SAS to Stata


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: Xtmixed from SAS to Stata
Date   Tue, 30 Jan 2007 22:45:17 +0900

Paola Di Stefano wrote:

I need to translate this procedure from SAS to Stata:

proc mixed;
class numero;
model bnp=dte / noint s;
repeated / subject=numero r;
run;

--------------------------------------------------------------------------------

Here's a stab at it:

xtmixed bnp dte, noconstant || numero:

dte's absence from the CLASS statement indicates that it's continuous.  (It
seems odd not to want an intercept in such a model.)  I believe the default
variance-covariance structure for the REPEATED statement is variance
components, so dte won't appear in the random effects equation as a random
slope.

Joseph Coveney

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index