Sample Size Adequacy: Joint Power, Precision, Stability and Feasibility Planning

Implements the Sample Size Adequacy (SSA) framework, in which the minimum adequate sample size is the smallest N that jointly satisfies detectability (power), precision (confidence interval width, optionally with assurance; Kelley and Rausch (2006) ), stability (relative bias) and feasibility (rate of admissible solutions). Provides closed-form predictions of the binding criterion based on unit-information asymptotic theory, generalizing Goodman and Berlin (1994) , a calibrated weak-identification law for the admissibility of confirmatory factor analysis solutions, and Monte Carlo verification with root finding for confirmatory factor analysis (via 'lavaan'), multiple regression and one-way ANOVA. Non-normal data are generated with the method of Vale and Maurelli (1983) . An interactive 'shiny' planner is included.


ssadequacy

Sample Size Adequacy (SSA): joint power, precision, stability and feasibility planning for confirmatory factor analysis, multiple regression and one-way ANOVA.

A study is adequate when four requirements hold at the same time for the parameters that carry its claims (the focal parameters):

Criterion Requirement
Detectability power of the focal Wald tests is at least π
Precision the 95% confidence interval width is at most δ (in expectation, or with assurance γ)
Stability the absolute relative bias is at most τ
Feasibility the rate of admissible (converged, Heywood-free) solutions is at least κ

The minimum adequate sample size N* is the largest of the four criterion-specific requirements, and the criterion that attains it is the bottleneck. ssadequacy predicts the bottleneck in closed form and verifies it by Monte Carlo simulation.

Installation

# from CRAN (once accepted)
install.packages("ssadequacy")

# development version
# install.packages("remotes")
remotes::install_github("cansuergenc/ssadequacy")

Workflow

library(ssadequacy)

# 1. Describe the design (population model, focal parameters, data distribution)
d <- ssa_design_cfa(nfactors = 3, nind = 5, loadings = c(.35, .40))

# 2. Closed-form bottleneck analysis
a <- ssa_analytic(d, delta = .20, power = .80)
a

# Which criterion binds between power and precision depends only on
# r = delta / |theta| relative to the crossover ratio r*
ssa_crossover()            # 1.399 for alpha = .05, power = .80

# Predicted admissibility of CFA solutions (calibrated scaling law)
ssa_feasibility(d, N = c(100, 150, 200))

# 3. Monte Carlo verification with root finding (slower)
s <- ssa_simulate(d, delta = .20, reps = 500)
s

# 4. Justification paragraph for a preregistration or Method section
ssa_report(a)

# Interactive planner
run_ssa_app()

The planning population can also be taken from a fitted lavaan model, for example a pilot study:

fit <- lavaan::cfa("visual  =~ x1 + x2 + x3
                    textual =~ x4 + x5 + x6
                    speed   =~ x7 + x8 + x9",
                   data = lavaan::HolzingerSwineford1939, std.lv = TRUE)
ssa_analytic(ssa_design_from_lavaan(fit), delta = .20, assurance = .80, se_cv = 1)

See vignette("ssadequacy") for a full walk-through.

Author

Cansu Ergenç Özdaş, Ankara Yıldırım Beyazıt University (ORCID 0000-0002-4722-0911).

Citation

Ergenç Özdaş, C. (2026). Beyond rules of thumb: A bottleneck theory of sample size adequacy. Manuscript in preparation. See citation("ssadequacy").

License

GPL (>= 3)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ssadequacy")

0.1.0 by Cansu Ergenç Özdaş, 2 days ago


https://github.com/cansuergenc/ssadequacy


Report a bug at https://github.com/cansuergenc/ssadequacy/issues


Browse source code at https://github.com/cran/ssadequacy


Authors: Cansu Ergenç Özdaş [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL (>= 3) license


Imports lavaan, stats, parallel

Suggests shiny, testthat, knitr, rmarkdown


See at CRAN