I have a data set which I think requires an linear mixed model to analyze, but am unsure about some details. Below is a brief description of the experiment:
I have data from ~ 30 mice half of which are male and half of which are female. I have a behavioral measure that I'd like to predict based on activated cells in the brain. I performed a cluster analysis on cells counts in 485 regions and a SVD on each cluster, which leaves me with 9 repeated measures (I am only using the first singular value for each cluster) and sex as a between groups variable. I would think that the model should be:
lmer(Behavior ~ sex + cluster + (sex * cluster) + (cluster | mouse)
My only concern is that my DV is not a repeated measure. My question is then if this is the correct approach. See the data below:
edit: Reposting data for a single mouse in response to the first comment
`Behavior Cluster Sex Mouse
28 -0.038136592 0 1
28 -0.023112313 0 1
28 -0.222644927 0 1
28 -0.208861993 0 1
28 -0.269723875 0 1
28 -0.062751677 0 1
28 -0.191682896 0 1
28 -0.245295508 0 1
28 -0.190930967 0 1`
Behavior ~ sex + cluster + (sex * cluster) + (cluster | mouse)
. And the outcome variableBahaviour
(is itAttack Durati
in the picture. or something else) ? $\endgroup$