Description Usage Arguments Value Author(s)
This is an auxiliary function. It calculates the sample size , simulated type I error rate and the simulated power of a fixed-sample design. The originally planned sample size is calculated on the basis of an assumed standard deviation. A distinction is made between one-sided and two-sided tests. The test statistic is compared to the quantiles of the t-distribution.
1 2 | fix_sample_pow(sd_ber, delta = 0, Delta, sd, test = 1, alpha = 0.05, beta = 0.2,
simu = 10000)
|
sd_ber |
Vector of numbers. Interval of an area for the actual standard deviation in the data. |
delta |
Number. Expectation difference of two samples. |
Delta |
Number. Relevant difference of expected values in the alternative hypothesis. |
sd |
Number. Assumed standard deviation of the data. |
test |
Number. What type of hypothesis test should be performed, one-sided (Superiority/ |
alpha |
Number. Desired alpha-level of the test. |
beta |
Number. Acceptable beta error of the test. |
simu |
Number. How many simulations should be performed? |
This function only creates the sample size, type I error rate and Power values for multiple actual
standard deviation values.
The output is used in the function sample_pow to visualize the sample size, the type I error rate and
the power.
Csilla van Lunteren
@seealso
fix_calc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.