help in model

#1
I have a data set like that

ID Wight age sex season region response
1 60 40 1 4 2 1000
2 65 40 1 4 1 1200
3 70 40 1 3 2 1420
4 90 45 1 1 1 1900
5 80 30 1 2 2 1700
6 70 33 2 3 1 1900
7 60 60 2 2 2 2100
8 99 40 2 2 1 2500
9 88 42 2 4 2 2000
10 90 54 2 1 1 2400

I want to write a model

fit <- lmer (response ~ Wight + age + sex + season + region + (I|ID), data=DF )
here I defined all as a fixed effects except ID which is a random
first question is that is OK
second I want to fit weight as a covariate (not as a factor)

how do I modify the model??
 

hlsmith

Omega Contributor
#2
Wight = weight?


Define what you mean by this, "I want to fit weight as a covariate (not as a factor)". Do you mean as a continuous variable?