Sign {LearnNonparam} | R Documentation |
Two-Sample Sign Test
Description
Performs two-sample sign test on samples.
Super classes
LearnNonparam::PermuTest
-> LearnNonparam::TwoSampleTest
-> LearnNonparam::TwoSamplePairedTest
-> Sign
Active bindings
correct
Whether to apply continuity correction.
Methods
Public methods
Inherited methods
Method new()
Create a new Sign
object.
Usage
Sign$new( type = c("permu", "asymp"), alternative = c("two_sided", "less", "greater"), n_permu = 10000, correct = TRUE )
Arguments
type
a character string specifying the way to calculate the p-value.
alternative
a character string specifying the alternative hypothesis.
n_permu
an integer indicating number of permutations for the permutation distribution. If set to
0
, all permutations will be used.correct
a logical indicating whether to apply continuity correction in the normal approximation for the p-value.
Returns
A Sign
object.
Examples
t <- pmt(
"paired.sign",
alternative = "greater", n_permu = 0
)$test(
rep(c(+1, -1), c(12, 5)), rep(0, 17)
)$print()
t$type <- "asymp"
t
[Package LearnNonparam version 1.2.9 Index]