get_n_from_depth {wodds} | R Documentation |
Get sample size from depth
Description
Calculates the sample size needed given an alpha level and depth
Usage
get_n_from_depth(d, alpha = 0.05, conservative = TRUE)
Arguments
d |
an integer depth |
alpha |
alpha level such as 0.1, 0.05, 0.01. An alpha of 0.05 would be associated with a 95 percent confidence interval |
conservative |
a bool. default is FALSE. If TRUE then a conservative (larger) sample size is returned. |
Value
a float sample size
Examples
get_n_from_depth(7L, 0.01)
[Package wodds version 0.1.0 Index]