Package: pwrss 0.3.1

pwrss: Statistical Power and Sample Size Calculation Tools

Statistical power and minimum required sample size calculations for (1) testing a proportion (one-sample) against a constant, (2) testing a mean (one-sample) against a constant, (3) testing difference between two proportions (independent samples), (4) testing difference between two means or groups (parametric and non-parametric tests for independent and paired samples), (5) testing a correlation (one-sample) against a constant, (6) testing difference between two correlations (independent samples), (7) testing a single coefficient in multiple linear regression, logistic regression, and Poisson regression (with standardized or unstandardized coefficients, with no covariates or covariate adjusted), (8) testing an indirect effect (with standardized or unstandardized coefficients, with no covariates or covariate adjusted) in the mediation analysis (Sobel, Joint, and Monte Carlo tests), (9) testing an R-squared against zero in linear regression, (10) testing an R-squared difference against zero in hierarchical regression, (11) testing an eta-squared or f-squared (for main and interaction effects) against zero in analysis of variance (could be one-way, two-way, and three-way), (12) testing an eta-squared or f-squared (for main and interaction effects) against zero in analysis of covariance (could be one-way, two-way, and three-way), (13) testing an eta-squared or f-squared (for between, within, and interaction effects) against zero in one-way repeated measures analysis of variance (with non-sphericity correction and repeated measures correlation), and (14) testing goodness-of-fit or independence for contingency tables. Alternative hypothesis can be formulated as "not equal", "less", "greater", "non-inferior", "superior", or "equivalent" in (1), (2), (3), and (4); as "not equal", "less", or "greater" in (5), (6), (7) and (8); but always as "greater" in (9), (10), (11), (12), (13), and (14). Reference: Bulus and Polat (2023) <https://osf.io/ua5fc>.

Authors:Metin Bulus [aut, cre]

pwrss_0.3.1.tar.gz
pwrss_0.3.1.zip(r-4.5)pwrss_0.3.1.zip(r-4.4)pwrss_0.3.1.zip(r-4.3)
pwrss_0.3.1.tgz(r-4.4-any)pwrss_0.3.1.tgz(r-4.3-any)
pwrss_0.3.1.tar.gz(r-4.5-noble)pwrss_0.3.1.tar.gz(r-4.4-noble)
pwrss_0.3.1.tgz(r-4.4-emscripten)pwrss_0.3.1.tgz(r-4.3-emscripten)
pwrss.pdf |pwrss.html
pwrss/json (API)
NEWS

# Install 'pwrss' in R:
install.packages('pwrss', repos = c('https://metinbulus.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

29 exports 4 stars 0.49 score 0 dependencies 46 scripts 831 downloads

Last updated 1 years agofrom:5f504f535d. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 03 2024
R-4.5-winOKSep 03 2024
R-4.5-linuxOKSep 03 2024
R-4.4-winOKSep 03 2024
R-4.4-macOKSep 03 2024
R-4.3-winOKSep 03 2024
R-4.3-macOKSep 03 2024

Exports:power.chisq.testpower.f.testpower.t.testpower.z.testpwrss.chisq.gofitpwrss.f.ancovapwrss.f.regpwrss.f.regressionpwrss.f.rmanovapwrss.np.2groupspwrss.np.2meanspwrss.t.2meanspwrss.t.meanpwrss.t.regpwrss.t.regressionpwrss.z.2corrspwrss.z.2meanspwrss.z.2propspwrss.z.corrpwrss.z.logisticpwrss.z.logregpwrss.z.meanpwrss.z.medpwrss.z.mediationpwrss.z.poisregpwrss.z.poissonpwrss.z.proppwrss.z.regpwrss.z.regression

Dependencies:

A Practical Guide to Statistical Power and Sample Size Calculations in R

Rendered fromexamples.Rmdusingknitr::rmarkdownon Sep 03 2024.

Last update: 2023-04-11
Started: 2022-11-09

Readme and manuals

Help Manual

Help pageTopics
Type I and Type II Error Plotplot.pwrss
Statistical Power for the Generic Chi-square Testpower.chisq.test
Statistical Power for the Generic F Testpower.f.test
Statistical Power for the Generic t Testpower.t.test
Statistical Power for the Generic z Testpower.z.test
Goodness-of-Fit or Independence (Chi-square Test)pwrss.chisq.gofit
Analysis of (Co)Variance (F test)pwrss.f.ancova pwrss.f.anova
Linear Regression: R-squared or R-squared Difference (F Test)pwrss.f.reg pwrss.f.regression
Repeated Measures Analysis of Variance (F test)pwrss.f.rmanova
Difference between Two Groups (Non-parametric Tests for Independent and Paired Samples)pwrss.np.2groups pwrss.np.2means
Difference between Two Means (t or z Test for Independent or Paired Samples)pwrss.t.2means pwrss.z.2means
One Mean against a Constant (z or t Test)pwrss.t.mean pwrss.z.mean
Linear Regression: Single Coefficient (t or z Test)pwrss.t.reg pwrss.t.regression pwrss.z.reg pwrss.z.regression
Difference between Two Correlations (Independent Samples z Test)pwrss.z.2corrs pwrss.z.2cors
Difference between Two Proportions (z Test)pwrss.z.2props
One Correlation against a Constant (One Sample z Test)pwrss.z.cor pwrss.z.corr
Logistic Regression: Single Coefficient (Large Sample Approx. Wald's z Test)pwrss.z.logistic pwrss.z.logreg
Indirect Effect in Mediation Analysis (z, Joint, and Monte Carlo Tests)pwrss.z.med pwrss.z.mediation
Poisson Regression: Single Coefficient (Large Sample Approx. Wald's z Test)pwrss.z.poisreg pwrss.z.poisson
One Proportion against a Constant (z Test)pwrss.z.prop