Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Joseph Coveney" <stajc2@gmail.com> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: Re: three-level gllamm - variable as a nesting variable or a predictor? |
Date | Sun, 6 Oct 2013 17:33:23 +0900 |
Lisa Marie Yarnell wrote: 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? --------------------------------------------------------------------------------