Closed iago-pssjd closed 2 years ago
How did you get the values 5 and 51?
That is explained in the comment line in the example:
# I figure edf is somewhere between 5 (Blocks df) and 51 (Resid df)
In the examples above, would it has sense to use 25 or 101?
Maybe. But actually it would make little difference. The value of `edf`` quantifies the uncertainty in the denominator of Cohen's d. It will not affect the estimate of d, just the width of the CI for it, and once you get above 25 or 30 d.f., that's already not that different from infinity.
But what df to choose if different levels have different df?
To err on the conservative side, I'd use the minimum of the d.f. for the pairwise differences (not for the means themselves).
Thanks for the answer!
Just to make clear, I've read the comment
# I figure edf is somewhere between 5 (Blocks df) and 51 (Resid df)
but I do not know where do you see the Blocks df and the Resid df in the output of the lme
object. Well, the Blocks df coincides with the number under Block
under Number of groups
, is it its df
? However I do not see the 51...
Hi!
I know the mixed model example in
?eff_size
, but let me comment it later and start by other place. In the vignette https://cran.r-project.org/web/packages/emmeans/vignettes/comparisons.html I seeTherefore, I thought the
edf
value was got from the output ofpairs(pigs.emm.s)
. Let's use a linear mixed modelso I would try
eff_size(fit.s, sigma = sigma(fit), edf = 25)
. But in the examples in?eff_size
I see thatedf
is approached bywhich is a very different output. Then I saw the mixed model example mentioned at the beginning:
Here,
df.residual
does not work forlme
models. How did you get the values 5 and 51? 5 coincides with the df printed inemmV
. Is this a good reference to cacth thedf
? In the examples above, would it has sense to use 25 or 101?Let me ask you now about the
by
use. In your exampleall rows (all levels of tension and wool) have the same
df
. But whatdf
to choose if different levels have differentdf
?Thank you!