Hello Stata Forum,
Your responses have been very useful.
I am looking for help that I have not able to find addressed here in the forum previously.
I am using Stata version 14.2
My research question is looking at the consumption of a food group on body weight.
So for the levels, I certainly do have the centres at the highest level and the patients at the lowest.
I am trying to better understand and apply the linear mixed models with repeated measures outcomes and time-varying covariates
I am looking for help to think through 3 points:
Your responses have been very useful.
I am looking for help that I have not able to find addressed here in the forum previously.
I am using Stata version 14.2
My research question is looking at the consumption of a food group on body weight.
- Exposure: food group intake measured at baseline, year 1 and year 2
- Outcome: Body weight was also measured at baseline, year 1 and year 2
So for the levels, I certainly do have the centres at the highest level and the patients at the lowest.
I am trying to better understand and apply the linear mixed models with repeated measures outcomes and time-varying covariates
I am looking for help to think through 3 points:
- Which of the following syntaxes seems more appropriate?
- Option1: mixed body_weight_t food_exposure_t i.visit c.food_exposure_t #i.visit fixed factors ……… || centre || idcluster: || paciente: ; I believe this only accounts for the multiple levels in random factors
- Option2 : mixed body_weight_t food_exposure_t i.visit c.food_exposure_t #i.visit fixed factors || centre || idcluster: || paciente: visit, covariance(unstruct) ;- I believe that this accounts for individual slopes as a random term and is a better option
- Should idcluster in this case, be treated as a random effect or is it more like a fixed effect? Because a cluster at the max has only 2 individuals. The dataset has approximately 7000 participants, Hence a lot of idclusters.
- Can vce be used with linear mixed models? In that case can we use the id as a cluster variable.?
Comment