powertools: Power and Sample Size Tools

Power and sample size calculations for a variety of study designs and outcomes. Methods include t tests, ANOVA (including tests for interactions, simple effects and contrasts), proportions, categorical data (chi-square tests and proportional odds), linear, logistic and Poisson regression, alternative and coprimary endpoints, power for confidence intervals, correlation coefficient tests, cluster randomized trials, individually randomized group treatment trials, multisite trials, treatment-by-covariate interaction effects and nonparametric tests of location. Utilities are provided for computing various effect sizes. Companion package to the book "Power and Sample Size in R", Crespi (2025, ISBN:9781138591622).

Getting started

Package details

AuthorCatherine M. Crespi [aut, cre], Zichen Liu [aut], Kristen M. McGreevy [ctb]
MaintainerCatherine M. Crespi <ccrespi@ucla.edu>
LicenseMIT + file LICENSE
Version0.1.2
URL https://github.com/powerandsamplesize/powertools
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("powertools")

Try the powertools package in your browser

Any scripts or data that you put into this service are public.

powertools documentation built on April 4, 2025, 5:02 a.m.