get_n_from_depth | R Documentation |
Calculates the sample size needed given an alpha level and depth
get_n_from_depth(d, alpha = 0.05, conservative = TRUE)
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. |
a float sample size
get_n_from_depth(7L, 0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.