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