rbt_power_calc: RBT Power Calculation Function

View source: R/rbt_power.R

rbt_power_calcR Documentation

RBT Power Calculation Function

Description

Calculates power for a Randomized Binomial Test in a binomial experiment setting, given a sample size, true_prob, requirement, and significance level.

Usage

rbt_power_calc(
  sample_size,
  true_p,
  requirement,
  requirement_type = "gt",
  alpha = 0.05
)

Arguments

sample_size

the total sample size

requirement

the required underlying probability of success

requirement_type

defaults to "gt" (greater than). Can be set to "lt" (less than)

alpha

the significance level for a two-sided interval. Defaults to .05

true_prob

the true underlying probability of success

Value

list containing parameters of power calculation (float), df of power calculation results, and power (float)


njjms/nicks documentation built on May 4, 2022, 8:10 a.m.