spinner_data {ProbBayes}R Documentation

Simulate random data from a spinner

Description

Simulate random data from a spinner

Usage

  spinner_data(regions, nsim=1000)

Arguments

regions

vector of integer values for the spins 1, 2, ...

nsim

number of spins

Value

A vector of random spins from the spinner

Author(s)

Jim Albert

Examples

  regions <- c(2, 1, 1, 2)
  spinner_data(regions, nsim=20)

[Package ProbBayes version 1.1 Index]