I currently have some data but am unsure how I can model it using a mixed model. My data/variables are as follows:
Test(factor) - A collection of 10 tests that every person has taken
Value - The scores on the tests
Status(factor) - Whether the person smokes or doesn't smoke
Age - 15-70
Gender(factor) - M/F
I am wondering how i can use a mixed model here to help me determine how test performance as associated with age, gender, and status. This is what I have, but I do not think this is correct. If you have any ideas, they would be greatly appreciated!
lmer(value ~ status + age + gender+(1|test), data = df, na.action = na.exclude)