Simulate a data set 'n' times, return the proportion of simulations where the null hypothesis is rejected.
1 | calculate_power(data_generator, test_null, n = 100)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.