empirical_power_result {ssutil}R Documentation

Create an Empirical Power Result object

Description

Constructs an S3 object of class empirical_power_result, storing the estimated power, its confidence interval, and the number of simulations used to compute it.

Usage

empirical_power_result(x, n, conf.level = 0.95)

Arguments

x

Number of successes

n

Number of trials.

conf.level

Confidence level for the returned confidence interval power.

Details

It is a wrap to binom.test

Value

An object of class empirical_power_result, a list with components:

Examples

result <- empirical_power_result(
  x = 10,
  n = 100,
  conf.level = 0.95
)
print(result)

[Package ssutil version 1.0.0 Index]