Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print.powerSim

Report simulation results


Description

Describe and extract power simulation results

Usage

## S3 method for class 'powerSim'
print(x, alpha = x$alpha, level = 0.95, ...)

## S3 method for class 'powerCurve'
print(x, ...)

## S3 method for class 'powerSim'
summary(object, alpha = object$alpha, level = 0.95,
  method = getSimrOption("binom"), ...)

## S3 method for class 'powerCurve'
summary(object, alpha = object$alpha,
  level = 0.95, method = getSimrOption("binom"), ...)

## S3 method for class 'powerSim'
confint(object, parm, level = 0.95,
  method = getSimrOption("binom"), alpha = object$alpha, ...)

## S3 method for class 'powerCurve'
confint(object, parm, level = 0.95,
  method = getSimrOption("binom"), ...)

Arguments

x

a powerSim or powerCurve object

alpha

the significance level for the statistical test (default is that used in the call to powerSim).

level

confidence level for power estimate

...

additional arguments to pass to binom::binom.confint()

alpha refers to the threshold for an effect being significant and thus directly determines the point estimate for the power calculation. level is the confidence level that is calculated for this point evidence and determines the width/coverage of the confidence interval for power.

object

a powerSim or powerCurve object

method

method to use for computing binomial confidence intervals (see binom::binom.confint())

parm

currently ignored, included for S3 compatibility with stats::confint

See Also


simr

Power Analysis for Generalised Linear Mixed Models by Simulation

v1.0.5
GPL (>= 2)
Authors
Green Peter [aut, cre] (<https://orcid.org/0000-0002-0238-9852>), MacLeod Catriona [aut], Alday Phillip [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.