d.meantest: D-value for hypothesis test using vectors

View source: R/d.meantest.R

d.meantestR Documentation

D-value for hypothesis test using vectors

Description

This function shows the D-value of a hypothesis test for two samples using non-summarized data, that is, vectors.

Usage

d.meantest(x, y, alternative = "less", nrep = 1e+06)

Arguments

x

vector sample data x.

y

vector sample data y.

alternative

a character string specifying the alternative hypothesis, must be one of "less" (default), "greater" or "two.sided". You can specify just the initial letter.

nrep

number of repetions to obtain the D-value, by default is 1000000

Details

In this case, it is important to explain that the sample size is assumed as n = 1 because the D-value provides an individual analysis.

Value

A list with class "htest" containing the following components:

d.value

the d-value for the test.

estimate

the estimated mean or difference in means depending on whether it was a one-sample test or a two-sample test.

alternative

a character string describing the alternative hypothesis.

method

a character string indicating the type of test performed.

Examples

d.meantest(x=c(2,3,4,5,6), y=c(3,4,5,6,7), alternative="two.sided")


fhernanb/stests documentation built on March 29, 2025, 10:36 a.m.