Learn R Programming

ProbBayes (version 1.1)

beta_data: Simulate random data from a beta curve

Description

Simulate random data from a beta curve

Usage

beta_data(shape_par, nsim=1000)

Arguments

shape_par

vector of shape parameters of the beta curve

nsim

number of simulations

Value

A vector of random draws from the beta distribution

Examples

Run this code
# NOT RUN {
  shape_par <- c(12, 8)
  beta_data(shape_par, 10)
# }

Run the code above in your browser using DataLab