Learn R Programming

TeachBayes (version 0.1.0)

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 spins from the spinner

Examples

Run this code
  sp <- c(2, 1, 1, 2)
  spinner_data(sp, 10)

Run the code above in your browser using DataLab