I ran a longitudinal model in RStudio looking at senior citizens and depression and am writing up the results, but my colleague and I disagree on how to interpret the model.
I have:
summary(lme.1<- lme(Depression ~ Memory+Gender+Age, random=~Year|ID, data=df, na.action=na.omit))
Our data has people (ID) measured 4 times over the Year for depression and other characteristics.
When I describe the model that we've run do I wrote it as:
Level 1: Yit = π0i +π1i(Memory) +π2i(Gender) +π3i(Age) +εit
π0i = β00 + r0i
Level 2:
π1i= β10+ r1i
π2i= β20+ r2i
π3i= β30+ r3i
Or am I misrepresenting where the memory, gender, and age variables go? As far as I understand it I did not include any of the variables on level 2. Should I? I don't understand what would be different or how I would code it differently in RStudio if they were level 2 variables.