Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DF between-within #192

Open
strengejacke opened this issue Jan 6, 2020 · 9 comments
Open

DF between-within #192

strengejacke opened this issue Jan 6, 2020 · 9 comments
Labels
Feature idea 🔥 New feature or request Help us 👀 Help is needed to implement something

Comments

@strengejacke
Copy link
Member

http://de.saswiki.org/images/d/d4/11.KSFE-2007-Buescher-Analyse_longitudinaler_Daten.pdf

@strengejacke strengejacke added the Feature idea 🔥 New feature or request label Jan 6, 2020
@mattansb
Copy link
Member

mattansb commented Jan 7, 2020

Ich nicht spreche Deutsch 🤷‍♂️ Was ist das? (Hope I got that right?)

@strengejacke
Copy link
Member Author

I haven't found a good resource quickly, the idea came up when reading this thread:
https://stats.stackexchange.com/q/443241/54740

@strengejacke
Copy link
Member Author

http://www2.sas.com/proceedings/sugi26/p262-26.pdf

@Generalized
Copy link

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.

https://www.researchgate.net/publication/275363360_Comparing_denominator_degrees_of_freedom_approximations_for_the_generalized_linear_mixed_model_in_analyzing_binary_outcome_in_small_sample_cluster-randomized_trials/stats

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.

@strengejacke
Copy link
Member Author

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.

@strengejacke
Copy link
Member Author

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...

@strengejacke strengejacke added the Help us 👀 Help is needed to implement something label Jun 22, 2020
@strengejacke
Copy link
Member Author

@bwiernik maybe you could also give some input here?

@bwiernik
Copy link
Contributor

rank(x) refers to rank of the fixed effects design matrix

@bwiernik
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature idea 🔥 New feature or request Help us 👀 Help is needed to implement something
Projects
None yet
Development

No branches or pull requests

4 participants