# Compute the first moment of the 2nd order statistic from Beta(3, 4) with sample size 5
mo_beta(r = 2, n = 5, k = 1, a = 3, b = 4)
# Compute the second moment with 10000 simulations
mo_beta(r = 2, n = 5, k = 2, a = 2, b = 2.5, rep = 1e4)
Run the code above in your browser using DataLab