Open strengejacke opened 4 years ago
Ich nicht spreche Deutsch 🤷♂️ Was ist das? (Hope I got that right?)
I haven't found a good resource quickly, the idea came up when reading this thread: https://stats.stackexchange.com/q/443241/54740
Also, you may find this one informative: Li, Peng & Redden, David. (2015). Comparing denominator degrees of freedom approximations for the generalized linear mixed model in analyzing binary outcome in small sample cluster-randomized trials. BMC medical research methodology. 15. 38. 10.1186/s12874-015-0026-x.
Currently, in R, only the containment method seems to be implemented (glmmPQL, nlme). In the repeated observations, especially in longitudinal trials, the between-within DF is often preferred as the last-resort option, if K-R or Satterthwaite cannot be used.
Thanks for the hint to the paper. I'm not sure how the DDF-B-W are calculated. The paper simply states K - rank[x]
, but I'm not sure where rank[x]
refers to.
Any SAS-Users here that can provide the output of some toy example that can be reproduced in R, so I can check the implementation of dof_betwithin()
? I think in particular for nested random effects, the computation might differ...
@bwiernik maybe you could also give some input here?
rank(x) refers to rank of the fixed effects design matrix
The between-within method was derived for repeated measures (fixed effects) designs with various error structures, not for random effects or mixed effects designs. So it doesn't pay any attention to the random effects design matrix
http://de.saswiki.org/images/d/d4/11.KSFE-2007-Buescher-Analyse_longitudinaler_Daten.pdf