beta_data {ProbBayes}R Documentation

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

Author(s)

Jim Albert

Examples

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

[Package ProbBayes version 1.1 Index]