test2 {mcsm} | R Documentation |
This function is a front-end for rchisq
, designed for comparison with test1
.
test2(Nsim = 10^4, df = 6)
Nsim |
Number of simulations |
df |
Degrees of freedom |
This function replicates rchisq(Nsim,df)
and thus should not be used.
Christian P. Robert and George Casella
From Chapter 2 of EnteR Monte Carlo Statistical Methods
test1,rchisq
mean(test2()) # produces [1] 5.955972