Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206700

How can i use a mixed model for my situation?

$
0
0

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)

Viewing all articles
Browse latest Browse all 206700

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>