How to adjust for the baseline variable on a basis for mixed models?

Asked

Viewed 16 times

1

My doubt consists in the realization of a Mixed models where I was asked to adjust to the variable baseline

I then have the variable weight in 3 moments (baseline, 4mo and 12mo) in 94 individuals. To make the Mixed models I had to restructure the database in "long format", that is, in a vertical format, that is, I have only one column for the variable weight and the variable time (1 2 and 3).

My question is, how can I adjust to the baseline weight taking into account that by adding the variable weight I include the baseline...

With no covariables: Mod1 <- lmer(Weight_1 ~ Group_num*Time + (1|Code), date = date)

If you want to adjust to the baseline variable, how do I do it? I mean, what do I have to do since I just want to adjust to the weight of team 1... I’ll have to add another database in another format?

mod2 <- lmer(Weight_1 ~ Group*Time + BASELINE WEIGHT + (1|Code), date=date)

I hope you can help me!!

  • Welcome to Stackoverflow! Unfortunately, this question cannot be reproduced by anyone trying to answer it. Please take a look at this link (mainly in the use of function dput) and see how to ask a reproducible question in R. So the people who want to help you will be able to do it in the best possible way. Additional explanations about the purpose of the analysis and what the variables mean Weight_1, Group, Time and Code are fundamental.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.