Hi, I am an undergraduate student attempting repeat measure multilevel modelling for my dissertation and would really appreciate help in producing the code for my project!
I am studying protein intake of high school students and seeing whether breakfast, lunch or dinner provides the most protein. I'm planning on doing this through regression using the overall daily protein intake.
I have collected their intake over two 24 hour periods (therefore have repeated measures data.)
My fixed explanatory variables are mealtimes (breakfast, lunch, dinner) and my levels are level 2 (day of observation (either first or second 24hr period)), level 3 ( Pupil Number) and level 4 (School).
My fixed covariates are sociodemographic variables such as age, gender however I'm struggling to understand how I fit these into the model
Currently i'm doing:
xtmixed TotalProtein_ Breakfast_ Lunch_ Dinner_ || Sch: || PupilN: || DayObs:
but i don't know how to account for my fixed covariates- any help would be VERY appreciated.
Related Posts with Fixed Covariates
Panzar and Rose Model Code in StataDear Forum members, I am a beginner in Stata and working on the thesis. I am trying to implement th…
Matching within strata in psmatch2Dear Statalists, I am working on treatment effects of foreign acquisition on firms' productivity, i…
Tobit model with variable upper limits on Stata 13Hi all, I need to run a Tobit model with variable upper limits on Stata 13, and these upper limits …
How to measure treatment effects in panel data when treatment happens at different times?Hello Statalists, I am working on treatment effects of foreign acquisition on firms' productivity, …
ado file of siilogit command (slop index of inequality command)Hi, I am running slop index of inequality using STATA 13 using the following command siilogit <…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed Covariates
Post a Comment