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: three-level gllamm - variable as a nesting variable or a predictor?


From   Lisa Marie Yarnell <lisa.yarnell@utexas.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: three-level gllamm - variable as a nesting variable or a predictor?
Date   Fri, 4 Oct 2013 13:46:04 -0700

Hello Statalist,

Is it possible (or meaningful) to have a variable both as a nesting
variable AND a predictor in a three-level model?

I have a three-level model with 305 observations nested within
segments of the study (segment A and segment B), which are nested in
31 persons.  id is the person id.

So the form of the model is something like:
gllamm drivesf gender aldh2cent braccent, i(segment id) family(binom)
link(logit) eform

But can I also put segment as a variable in the model to see its
direct effect on the dependent variable, contrasting segment B against
segment A?

I want to put it both as a nesting variable AND a predictor in the
model.  Is that viable?

Thank you,
Lisa

-
Lisa M. Yarnell
Department of Psychology
University of Southern California
3620 McClintock Ave.
Mailroom SGM 501, Office 826B
Los Angeles, CA 90089-1061
Office: x0-0850 or (213) 740-0850
Fax: (213) 746-9082
*
*   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