sample_size | R Documentation |
This function calculates the probability of Type II error for two independent groups when the when the population standard deviation is assumed known (i.e., using the $z$-distribution)#' in order to achieve a preassigned Type II error probability (beta) of interest.
sample_size(mu0, mu1, sigma, alpha, beta)
mu0 |
Mean value 0. |
mu1 |
Mean value 1. |
sigma |
The standard deviation. |
alpha |
The Type I error rate. |
beta |
The desired Type II error rate, used when calculating the necessary sample size. |
Returns the Type II error for a given sample size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.