Learn R Programming

mcsm (version 1.0)

test2: Generic chi-square generator

Description

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

Usage

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.

References

From Chapter 2 of EnteR Monte Carlo Statistical Methods

See Also

test1,rchisq

Examples

Run this code
mean(test2())
# produces [1] 5.955972

Run the code above in your browser using DataLab