cran-task-views / ctv

CRAN Task View Initiative
80 stars 13 forks source link

CRAN task view proposal: PowerAnalysis #41

Closed statisfactions closed 12 months ago

statisfactions commented 1 year ago

Scope

The proposed CRAN Task View would guide people towards R packages that support power analysis. We use the term "power analysis" to generally encompass what has also been called "design analysis" — examining how study design parameters (e.g., sample size, statistical test and effect size) can affect expected statistical properties of the study. Here we aggregate power analysis packages, including traditional frequentist power analysis and sample size planning, as well as credible interval coverage, model convergence rates, etc.

The task view would be organized alphabetically by the method employed: e.g. mixed models (supported by pwr2ppl, pamm, simglm) and non-inferiority trial (supported by epiR, blindrecalc) are presented in separate sections; this means that packages that support multiple tests may appear in multiple sections, which creates some duplication but has the benefit of showing related packages for a test in the same place.

We include packages with both formula-based power calculations for specific statistical tests (e.g. pwr2ppl) as well as simulation-based methods (e.g. sempower). We also include packages like rddapp that have power/design analysis as a prominent feature even if the package also performs estimation. We have excluded packages that are only focused on estimation of any specific methods; we have also excluded general packages that in principle could be useful for power analysis but have no focus on providing that functionality, e.g. tidyverse packages could be helfpully used for creating a simulation for power analysis but has no advertised focus on that. In contrast, we would include general simulation packages like DeclareDesign or simpr that have an express focus on design analysis, along with functionality for evaluating specific designs.

Packages

A draft task view is available, which is organized by topic. We are grateful that this work was supported through an R Consortium Grant.

Proposed core packages:

Overlap

Since the proposed Power Analysis task view covers the power analysis for a range of techniques, there is some minor overlap with other CRAN Task Views that mention power analysis. For instance, the Psychometrics CRAN Task View mentions the pwrRasch package, which computes power analysis for a type of psychometric analysis; this package would also appear in the proposed Power Analysis task view. Power analysis does not play a large role in any other task views, so we expect there will only be handful of overlapping packages. We believe the difference in focus between this and other task views justifies this minor degree of overlap.

Maintainers

Richard Webster Ethan Brown

zeileis commented 1 year ago

Thanks for the proposal! Some quick first impressions:

I hope to have some closer look at the draft and some of the packages included when I have some more time. But I thought that my first impressions above would already be a useful starting point for the discussion with the other CRAN Task View Editors.

Thanks again!

statisfactions commented 1 year ago

Thanks for the detailed and constructive feedback, @zeileis!

  1. I like the idea of regrouping the task view by broader inference frameworks. We struggled a bit with the organization, and broader classes of models could be a useful and more easily navigable approach. We'll play around with this.
  2. You have a good question about inclusion/exclusion for simulation packages. My first thought is something like Simulation packages that are expressly for evaluating study designs, including power, will be included. I'm struggling to think about the numerous packages geared toward simulation studies, e.g. simstudy, which could also be useful for simulating power/design. The more I think about it, the more it seems like simulation studies should be their own task view. Thoughts?
  3. I'll look into adding more co-maintainers and adding links as well.
tuxette commented 1 year ago

Hi @statisfactions : a short feedback on 2: in other task views (e.g., MissingData, part on Evaluation or Phylogenetics), packages oriented toward simulations for the related field are already included. So my personal point of view is that it would be better to continue in this direction than to have a broad TV on simulations that would address very different and unrelated simulation tasks.

zeileis commented 12 months ago

Ethan @statisfactions, thanks again for your proposal and for your work on this topic in general. Given that the draft is now almost 2 years old and we haven't had any follow-up to our feedback from almost a year ago, I feel it's time to close this issue though. Thanks again & best wishes!