designFreqT | R Documentation |
Computes the number of samples necessary to reach a tolerable type I and type II error for the frequentist t-test.
designFreqT( deltaMin, alpha = 0.05, beta = 0.2, alternative = c("twoSided", "greater", "less"), h0 = 0, testType = c("oneSample", "paired", "twoSample"), ... )
deltaMin |
numeric that defines the minimal relevant standardised effect size, the smallest effect size that we would the experiment to be able to detect. |
alpha |
numeric in (0, 1) that specifies the tolerable type I error control –independent of n– that the designed test has to adhere to. Note that it also defines the rejection rule e10 > 1/alpha. |
beta |
numeric in (0, 1) that specifies the tolerable type II error control necessary to calculate both the sample sizes and deltaS, which defines the test. Note that 1-beta defines the power. |
alternative |
a character string specifying the alternative hypothesis must be one of "twoSided" (default), "greater" or "less". |
h0 |
a number indicating the hypothesised true value of the mean under the null. For the moment h0=0. |
testType |
either one of "oneSample", "paired", "twoSample". |
... |
further arguments to be passed to or from methods, but mainly to perform do.calls. |
Returns an object of class 'freqTDesign'. An object of class 'freqTDesign' is a list containing at least the following components:
the planned sample size(s).
the minimal clinically relevant standardised effect size provided by the user.
the tolerable type I error provided by the user.
the tolerable type II error provided by the user.
the smallest n of the search space for n provided by the user.
the largest n of the search space for n provided by the user.
any of "oneSample", "paired", "twoSample" provided by the user.
any of "twoSided", "greater", "less" provided by the user.
designFreqT(0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.