Learn R Programming

BUCSS

BUCSS is an R package for implementing Bias- and Uncertainty-Corrected Sample Size planning. BUCSS implements a method of correcting for publication bias and uncertainty when planning sample sizes in a future study from an original study. See Anderson, Kelley, & Maxwell (2017; Psychological Science, 28, 1547-1562).

using BUCSS

After initially installing BUCSS on your R system install.packages("BUCSS"), load the package.

library(BUCSS)

Consider an original study in which two independent groups are used to test the null hypothesis of no difference in population means of the two groups (e.g., treatment and control group). The independent samples $t$-test in which the original study reported $t=3.00$ based on sample size per group of $n_1=50$ and $n_2=55$ with a Type I error rate of $\alpha=.05.$. The desired study seeks to have a statistical power of .80 and to have 90% assurance that the power will be at least 80%. The desired assurance is the probability that a planned study done using this method will reach or surpass desired level of statistical power. Note that an assurance of .5 corrects for publication bias only, whereas assurance $> .5$ corrects for uncertainty.

ss.power.it(t.observed=3, n=c(50, 55), alpha.prior=.05, alpha.planned=.05, power=.80, assurance=.90)

Which yeilds a necessary sample size of $n_1=n_2=1482$ per group (i.e., $N=n_1+n_2=2964$).

Copy Link

Version

Install

install.packages('BUCSS')

Monthly Downloads

253

Version

1.2.1

License

GPL (>= 3)

Maintainer

Ken Kelley

Last Published

August 25th, 2020

Functions in BUCSS (1.2.1)

ss.power.wa

Necessary sample size to reach desired power for a one or two-way within-subjects ANOVA using an uncertainty and publication bias correction procedure
ss.power.dt

Necessary sample size to reach desired power for a dependent t-test using an uncertainty and publication bias correction procedure
ss.power.wa.general

Necessary sample size to reach desired power for a within-subjects ANOVA with any number of factors using an uncertainty and publication bias correction procedure
BUCSS-package

Bias and Uncertainty Corrected Sample Size (BUCSS)
ss.power.spa.general

Necessary sample size to reach desired power for a split-plot (mixed) ANOVA with any number of factors using an uncertainty and publication bias correction procedure
ss.power.reg.all

Necessary sample size to reach desired power for a test of model R2 in a multiple regression using an uncertainty and publication bias correction procedure
ss.power.ba

Necessary sample size to reach desired power for a one or two-way between-subjects ANOVA using an uncertainty and publication bias correction procedure
ss.power.it

Necessary sample size to reach desired power for an independent t-test using an uncertainty and publication bias correction procedure
ss.power.reg.joint

Necessary sample size to reach desired power for a test of multiple predictors in a multiple regression using an uncertainty and publication bias correction procedure
ss.power.ba.general

Necessary sample size to reach desired power for a between-subjects ANOVA with any number of factors using an uncertainty and publication bias correction procedure
ss.power.spa

Necessary sample size to reach desired power for two-factor split-plot (mixed) ANOVA using an uncertainty and publication bias correction procedure
ss.power.reg1

Necessary sample size to reach desired power for a single coefficient in a multiple regression using an uncertainty and publication bias correction procedure