Compute the power and effect size for the object obtained from get.stats.
# S3 method for class 'power'
compute(
power4peaks.stats,
sample.size.range = c(0, 50),
power.threshold = 0.8,
estimation.method = "congrad",
distribution.type = NULL,
df = NULL
)
An object of class power4peaks.stats
.
Numeric vector of length 2, indicating minimum and maximum of the range of number of samples in which test the power. Default: c(0,50)
.
number between 0 and 1 indicating the threshold to plot for the power. Default: 0.8
(80 percent power).
String indicating the method to use to estimate the power (passed to SSPA::sampleSize
function). One among: 'deconv', 'congrad', 'tikhonov' or 'ferreira'. Default: "congrad"
.
String indicating the type of distribution to use; one among: 'norm', 't', 'f', 'chisq'. Default: NULL
, automatically defined from the power4peaks.stats object.
Numeric value or vector (df1 and df2, required only for F-statistics) indicating the number of degrees of freedom. Default: NULL
, automatically defined from the power4peaks.stats object.
An object of class power4peaks.power
.