seq_measure {copre}R Documentation

Sequence Measure for Species Sampling Models

Description

Sequence Measure for Species Sampling Models

Usage

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

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.

Value

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

See Also

seqre()


[Package copre version 0.2.0 Index]