Reputation: 1
I'm fairly new to R and stats. I'm exploring if the animals moved or not in their behavioral trials. My sample size is small (10 participants) and my IV has four levels, one trial of each level, it is repeated measures.
I am currently trying to complete a binomial glm using the glmer function.
When I then run the post hoc through the emmeans package it produces inf degrees of freedom, and I'd like it to produce actual degrees of freedom.
My code is as follows
dragonletmoveyn <- glmer(latency_to_move ~ view
+ (view|subject) + (view|trial),
data = dragonlatencycount, family = binomial)
diagnostics.func(dragonletmoveyn)
null_model_dragonletmoveyn <- update(dragonletmoveyn, .~. -view)
anova(null_model_dragonletmoveyn, dragonletmoveyn, test="Chisq")
dragonletmoveynposthoc <- emmeans(dragonletmoveyn, specs = pairwise ~ view, type = "response")
summary(dragonletmoveynposthoc)
I've tried specifing the lmer.df = "kenward-roger" function and with satterthwaite but the model seems to ignore the command.
I also tried setting my df = 3 as my glmer states in it's dfs but I'm not sure this method is right, either.
So, I have three questions
My other option is not using the emmeans package, and doing a contrasts or data subset comparison, but this is obviously a lot longer!
Thanks
Upvotes: 0
Views: 14