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]

st: Question about XTMIXED command


From   Christina Wei <[email protected]>
To   [email protected]
Subject   st: Question about XTMIXED command
Date   Fri, 7 Mar 2014 12:22:50 -0500

Hi all,

I am using Stata version 12.  New to data analysis using the long format.

My question is:  I am trying to do a multilevel data analysis involving
data collected from 100 patients over 3 visits.  I would like to adjust for
baseline BMI, but in the long format BMI is collected over 3 visits and BMI
from all 3 visits look like they will appear in the model if I were to
insert it into the command as followed:

xtmixed y i.female bmi age  || unqid:year, covariance(unstructured)  ||
bmi:year,covariance(unstructured)

How can I include baseline BMI (visit 1) as the variable that I would like
to add to the model?

Thanks for your help,
Christina
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index