powered by
chi_squared
Method for sampling from a chi_squared object.
# S3 method for chi_squared sampler(x, ...)
A function that generates n samples from the chi-squared distribution
n
The chi_squared object to sample from
Additional arguments (not used)
x <- chi_squared(5) s <- sampler(x) set.seed(42) s(5)
Run the code above in your browser using DataLab