View source: R/power_single_rate.R
| power_single_rate | R Documentation |
Estimates the minimum true proportion of events needed to detect at least one event, given a sample size and desired statistical power.
power_single_rate(subjects, power)
subjects |
Integer or vector of integers. Sample size(s). |
power |
Numeric or vector of numerics. Desired power(s), between 0 and 1. |
A matrix of class power_single_rate with columns:
Sample size
Requested power
Minimum detectable event rate to observe at least one event
power_single_rate(30, 0.9)
power_single_rate(c(30, 50, 100), 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.