Learn R Programming

mev (version 1.17)

.rPdirmix: Generate from extremal Dirichlet \(Y \sim {P_x}\), where \(P_{x}\) is the probability of extremal functions from a Dirichlet mixture

Description

Generate from extremal Dirichlet \(Y \sim {P_x}\), where \(P_{x}\) is the probability of extremal functions from a Dirichlet mixture

Usage

.rPdirmix(d, index, alpha, weight)

Value

a d-vector from \(P_x\)

Arguments

d

dimension of the 1-sample

index

index of the location. An integer in 0, ..., \(d-1\)

alpha

a \(d \times n\) dimensional vector of positive parameter values for the Dirichlet vector

weight

a m vector of mixture weights, which sum to 1