beta_data function

Simulate random data from a beta curve

Simulate random data from a beta curve

beta_data(shape_par, nsim=1000)

Arguments

  • shape_par: vector of shape parameters of the beta curve
  • nsim: number of simulations

Returns

A vector of random draws from the beta distribution

Author(s)

Jim Albert

Examples

shape_par <- c(12, 8) beta_data(shape_par, 10)