test2: Generic chi-square generator

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/test1.R

Description

This function is a front-end for rchisq, designed for comparison with test1.

Usage

1
test2(Nsim = 10^4, df = 6)

Arguments

Nsim

Number of simulations

df

Degrees of freedom

Details

This function replicates rchisq(Nsim,df) and thus should not be used.

Author(s)

Christian P. Robert and George Casella

References

From Chapter 2 of EnteR Monte Carlo Statistical Methods

See Also

test1,rchisq

Examples

1
2
mean(test2())
# produces [1] 5.955972

mcsm documentation built on May 2, 2019, 10:16 a.m.

Related to test2 in mcsm...