powered by
Simulate random data from a beta curve
beta_data(shape_par, nsim=1000)
vector of shape parameters of the beta curve
number of simulations
A vector of random draws from the beta distribution
# NOT RUN { shape_par <- c(12, 8) beta_data(shape_par, 10) # }
Run the code above in your browser using DataLab