power_neighborhood: Search neighborhood around a given sample size for highest...

View source: R/power_neighborhood.R

power_neighborhoodR Documentation

Search neighborhood around a given sample size for highest power

Description

In a binomial setting, sometimes higher power can be found by decreasing the sample size by a small amount.

Usage

power_neighborhood(neighborhood, power_config)

Arguments

neighborhood

the neighborhood to search in

power_config

a list containing the specifications for a power calculation

Value

list containing baseline power (float) and smallest sample size in neighborhood that achieves that power

Examples

power_neighborhood(neighborhood = 10, power_config = power_config)

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