A summary stats version of safeTTest() with the data replaced by t, n1 and n2, and the
design object by deltaS.
safeTTestStat(
t,
parameter,
n1,
n2 = NULL,
alternative = c("twoSided", "less", "greater"),
tDensity = FALSE,
paired = FALSE,
...
)Returns a numeric that represent the e10, that is, the e-value in favour of the alternative over the null
numeric that represents the observed t-statistic.
numeric this defines the safe test S, i.e., a likelihood ratio of t distributions with in the denominator the likelihood with delta = 0 and in the numerator an average likelihood defined by 1/2 time the likelihood at the non-centrality parameter sqrt(nEff)*parameter and 1/2 times the likelihood at the non-centrality parameter -sqrt(nEff)*parameter.
integer that represents the size in a one-sample t-test, (n2=NULL). When n2 is not NULL,
this specifies the size of the first sample for a two-sample test.
an optional integer that specifies the size of the second sample. If it's left unspecified, thus,
NULL it implies that the t-statistic is based on one-sample.
a character only used if pilot equals TRUE. If pilot equals FALSE,
then the alternative specified by the design object is used instead.
Uses the the representation of the safe t-test as the likelihood ratio of t densities.
a logical indicating whether you want a paired t-test.
further arguments to be passed to or from methods.
safeTTestStat(t=1, n1=100, 0.4)
safeTTestStat(t=3, n1=100, parameter=0.3)
Run the code above in your browser using DataLab