Distribution {coin}R Documentation

Distribution under the Null Hypothesis

Description

Specification of the exact, or approximation of the exact, conditional distribution of test statistics under the null hypothesis.

Usage

exact(algorithm = c("shift", "split-up"), fact = NULL)
approximate(B = 1000)
asymptotic(maxpts = 25000, abseps = 0.001, releps = 0)

Arguments

algorithm

a character, specifying the algorithm to be used for the computation of the exact conditional distribution.

fact

a positive integer to multiply the response values with.

B

a positive integer, the number of Monte-Carlo replications to approximate the exact conditional distribution.

maxpts

a positive integer, the maximum number of function values, see pmvnorm.

abseps

double, the absolute error tolerance, see pmvnorm.

releps

double, relative error tolerance, see pmvnorm.

Details

The distribution argument to independence_test can be specified with additional arguments using those functions.

Exact algorithms are currently only implemented for two-sample problems.

Value

An object of class exact, approximate or asymptotic, respectively.


[Package coin version 1.0-20 Index]