Performs quantile test on a single sample. In addition, an estimation and a confidence interval for the desired quantile will be calculated.
Super classes
LearnNonparam::PermuTest
-> LearnNonparam::OneSampleTest
-> Quantile
Active bindings
prob
The probability associated with the quantile.
correct
Whether to apply continuity correction.
Methods
Method new()
Create a new Quantile
object.
Arguments
type
a character string specifying the way to calculate the p-value.
alternative
a character string specifying the alternative hypothesis.
null_value
a number indicating the hypothesized value of the quantile.
conf_level
a number between zero and one indicating the confidence level to use.
prob
a number between zero and one indicating the probability associated with the quantile.
correct
a logical indicating whether to apply continuity correction in the normal approximation for the p-value.
Examples
pmt(
"onesample.quantile", prob = 0.5,
null_value = 75, alternative = "greater",
type = "asymp", correct = FALSE
)$test(Table1.1.1)$print()
#>
#> Quantile Test
#>
#> scoring: none type: asymp method: default
#> statistic = 26, p-value = 0.02888979
#> alternative hypothesis: true 0.5 quantile is greater than 75
#> estimate: 75.35
#> 95% confidence interval: (75, 77.1)
pmt(
"onesample.quantile",
prob = 0.25, conf_level = 0.90
)$test(Table1.2.1)$conf_int
#> [1] 11 29