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: Question about XTMIXED command (fwd)


From   Laura Gibbons <[email protected]>
To   [email protected]
Subject   Re: st: Question about XTMIXED command (fwd)
Date   Fri, 7 Mar 2014 12:29:46 -0800 (PST)


I would create a new variable that is baseline BMI.

bys unqid (year):gen baselinebmi=bmi[1]

On 3/7/2014 9:22 AM, Christina Wei wrote:
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/

--
Laura E. Gibbons, PhD
General Internal Medicine, University of Washington
Box 359780, Harborview Medical Center, 325 Ninth Ave, Seattle, WA 98104
phone: 206-744-1842, fax: 206-897-4688,
Office address: 1449 Ninth and Jefferson Building
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


*
*   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