# Compute the first moment (mean) of the 3rd order statistic from a sample of size 10
mo_gamma(r = 3, n = 10, shape = 2, rate = 1, k = 1)
# Compute the second moment with 10000 simulations
mo_gamma(r = 2, n = 10, shape = 2, rate = 0.5, k = 2, rep = 1e4)
Run the code above in your browser using DataLab