get.power.betabinom: Estimate the power to compare two beta-binomial...

get.power.betabinomR Documentation

Estimate the power to compare two beta-binomial distributions.

Description

A power study useful in the context of ExomeDepth.

Usage

get.power.betabinom(
  size,
  my.phi,
  my.p,
  my.alt.p,
  theory = FALSE,
  frequentist = FALSE,
  limit = FALSE
)

Arguments

size

Number of samples from the beta-binomial distribution.

my.phi

Over-dispersion parameter.

my.p

Expected p under the null.

my.alt.p

Expected p under the alternative.

theory

logical, should a theoretical limit (large sample size) be used? Defaults to FALSE.

frequentist

logical, should a frequentist version be used? Defaults to FALSE.

limit

logical, should another large sample size limit be used? Defaults to FALSE.

Value

An expected Bayes factor.

Examples

get.power.betabinom(size = 200, my.phi = 0.1, my.p = 0.2, my.alt.p = 0.6)
get.power.betabinom(size = 200, my.phi = 0.1, my.p = 0.2, my.alt.p = 0.2)

ExomeDepth documentation built on Nov. 3, 2022, 5:05 p.m.