rStickBreak: Calculate random proportions from a dirchlet process based on...

Description Usage Arguments Value Examples

View source: R/infinite.R

Description

Calculate random proportions from a dirchlet process based on stick breaking procedure

Usage

1
rStickBreak(n, alpha = 1)

Arguments

n

number of numbers to generate

alpha

smaller alpha means on average more weight concentrated earlier

Value

a vector of n numbers adding to 1

Examples

1
2

sherrillmix/infiniter documentation built on May 26, 2017, 8:08 a.m.