Learn R Programming

coin (version 1.1-0)

NullDistribution-methods: Computation of the Reference Distribution

Description

Methods for computation of the asymptotic, approximative (Monte Carlo) and exact reference distribution.

Usage

## S3 method for class 'MaxTypeIndependenceTestStatistic':
AsymptNullDistribution(object, \dots)
## S3 method for class 'QuadTypeIndependenceTestStatistic':
AsymptNullDistribution(object, \dots)
## S3 method for class 'ScalarIndependenceTestStatistic':
AsymptNullDistribution(object, \dots)

## S3 method for class 'MaxTypeIndependenceTestStatistic': ApproxNullDistribution(object, B = 10000, \dots) ## S3 method for class 'QuadTypeIndependenceTestStatistic': ApproxNullDistribution(object, B = 10000, \dots) ## S3 method for class 'ScalarIndependenceTestStatistic': ApproxNullDistribution(object, B = 10000, \dots)

## S3 method for class 'QuadTypeIndependenceTestStatistic': ExactNullDistribution(object, algorithm = c("auto", "shift", "split-up"), ...) ## S3 method for class 'ScalarIndependenceTestStatistic': ExactNullDistribution(object, algorithm = c("auto", "shift", "split-up"), ...)

Arguments

object
an object from which the asymptotic, approximative (Monte Carlo) or exact reference distribution can be computed.
B
a positive integer, the number of Monte Carlo replicates used for the computation of the approximative reference distribution. Defaults to 10000.
algorithm
a character, the algorithm used for the computation of the exact reference distribution: either "auto" (default), "shift" or "split-up".
...
further arguments to be passed to or from methods.

Value

  • An object of class "AsymptNullDistribution", "ApproxNullDistribution" or "ExactNullDistribution".

Details

The methods AsymptNullDistribution, ApproxNullDistribution and ExactNullDistribution compute the asymptotic, approximative (Monte Carlo) and exact reference distribution respectively.