Description Usage Arguments Value Author(s) References Examples
In two-sided fixed design two-sample t-tests with composite alternative prior assumed on the standardized effect size (μ_2 - μ_1)/σ under the alternative and a prefixed sample size, this function calculates the expected log(Hajnal's ratio) at a varied range of differences between standardized effect sizes.
1 2 3 | fixedHajnal.twot_n(es1 = 0.3, es = c(0, 0.2, 0.3, 0.5),
n1.fixed = 20, n2.fixed = 20,
nReplicate = 50000, nCore)
|
es1 |
Positive numeric. δ as above. Default: 0.3. For this, the prior on (μ_2 - μ_1)/σ takes values 0.3 and -0.3 each with equal probability 1/2. |
es |
Numeric vector. Standardized effect size differences (μ_2 - μ_1)/σ where the expected weights of evidence is desired. Default: |
n1.fixed |
Positive integer. Prefixed sample size from Group-1. Default: 20. |
n2.fixed |
Positive integer. Prefixed sample size from Group-2. Default: 20. |
nReplicate |
Positve integer. Number of replicated studies based on which the expected weights of evidence is calculated. Default: 50,000. |
nCore |
Positive integer. Default: One less than the total number of available cores. |
A list with two components named summary
and BF
.
$summary
is a data frame with columns effect.size
containing the values in es
and avg.logBF
containing the expected log(Hajnal's ratios) at those values.
$BF
is a matrix of dimension length(es)
by nReplicate
. Each row contains the Hajnal's ratios at the corresponding standardized effec size in nReplicate
replicated studies.
Sandipan Pramanik and Valen E. Johnson
Hajnal, J. (1961). A two-sample sequential t-test.Biometrika, 48:65-75, [Article].
Schnuerch, M. and Erdfelder, E. (2020). A two-sample sequential t-test.Biometrika, 48:65-75, [Article].
1 | out = fixedHajnal.twot_n(n1.fixed = 20, n2.fixed = 20, es = c(0, 0.3), nCore = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.