calculate_power: Simulate a data set 'n' times, return the proportion of...

Description Usage Arguments

Description

Simulate a data set 'n' times, return the proportion of simulations where the null hypothesis is rejected.

Usage

1
calculate_power(data_generator, test_null, n = 100)

Arguments

data_generator

A function to simulate a data set.

test_null

A function that tests the null hypothesis given an observed data set.

n

The number of simulations to run.


amarder/powerstan documentation built on May 12, 2019, 2:34 a.m.