sw: Satterthwaite-Welch method

Description Usage Arguments References Examples

Description

Computes the cdf of a positively-weighted sum of chi-squared random variables with the Satterthwaite-Welch (SW) method.

Usage

1
sw(coeff, x)

Arguments

coeff

The coefficient vector. All values must be greater than 0.

x

The vector of quantile values. All values must be greater than 0.

References

Examples

1
2
3
4
5
6
#Examples taken from Table 18.6 in N. L. Johnson, S. Kotz, N. Balakrishnan.
#Continuous Univariate Distributions, Volume 1, John Wiley & Sons, 1994.

sw(c(1.5, 1.5, 0.5, 0.5), 10.203)            # should give value close to 0.95
sw(coeff=c(1.5, 1.5, 0.5, 0.5), x=10.203)    # specifying parameters
sw(c(1.5, 1.5, 0.5, 0.5), c(0.627, 10.203))  # x is a vector, output close to 0.05, 0.95

momentchi2 documentation built on May 2, 2019, 2:02 p.m.

Related to sw in momentchi2...