compute_results_asymptotic: Test decision for asymptotic versions of HL1-, HL2-, and...

View source: R/helpers.R

compute_results_asymptoticR Documentation

Test decision for asymptotic versions of HL1-, HL2-, and MED-tests

Description

compute_results_asymptotic is a helper function to compute the test decision for the HL1-, HL2-, and MED-test when method = "asymptotic".

Usage

compute_results_asymptotic(x, y, alternative, delta, type)

Arguments

x

a (non-empty) numeric vector of data values.

y

a (non-empty) numeric vector of data values.

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided", "greater", or "less".

delta

a numeric value indicating the true difference in the location or scale parameter, depending on whether the test should be performed for a difference in location or in scale.

type

a character string specifying the desired test statistic. It must be one of "HL11", "HL12", "HL21", "HL22", "MED1", and "MED2", where "HL1", "HL2" and "MED" specify the location estimator and the numbers 1 and 2 the scale estimator, see the vignette (vignette("robnptests")) for more information.

Value

A named list containing the following components:

statistic

the value of the test statistic.

estimates

the location estimates for both samples in case of the HL1- and the MED-tests. The estimate for the location difference in case of the HL2-tests.

p.value

the p-value for the test.


robnptests documentation built on Feb. 16, 2023, 7:10 p.m.