Function to calculate power at a given significance level. Uses the data structure returned by `run.tests`

1 | ```
calculate.power(vals, alpha = 0.95, comp = `>`)
``` |

`vals` |
list, values as returned by |

`alpha` |
significance level at which to return power |

`comp` |
comparison function, for alpha < .5, it should probably be set to '<' |

power is calculated as the fraction of tests that are higher or lower than (according to `comp`

) than the significance level. The significance level is fixed on data generated under the null hypothesis.

returns the power for applicable data from the structure vals, usually for each test it returns the power for all types of dependence and all noise levels.

Sebastian Dümcke duemcke@mpipz.mpg.de

1 2 3 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.