Learn R Programming

copre (version 0.2.1)

seq_measure: Sequence Measure for Species Sampling Models

Description

Sequence Measure for Species Sampling Models

Usage

seq_measure(idx, pars, hpars, Pn, Po)

Value

A seq_measure object for use in the exchangeable sequence resampling scheme for mixtures.

Arguments

idx

A unique index for the sequence measure.

pars

A list of parameters used in Pn and Po to generate a sequence.

hpars

A list of hyperparameters used to generate pars.

Pn

A function on a sequence length n and a number of unique values k that returns the probability of the next member in the sequence having a new value.

Po

A function on a sequence length n, a number of unique values k, and the number of values equal to j, kj, that returns the probability of the next member in the sequence having the value j.

See Also

seqre()