CompRateP: Rate parameter computation for the Gamma full-conditionals of...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

The function CompRateP computes the rate parameters of the Gamma full-conditionals of the support parameters for the Gibbs sampling of a Bayesian mixture of Plackett-Luce models.

Usage

1
CompRateP(pi_inv, Y, z, u_bin, n_rank, rate0)

Arguments

pi_inv

Numeric NxK data matrix of partial orderings.

Y

Numeric NxK matrix of the quantitative latent variables.

z

Numeric NxK matrix of binary component memberships.

u_bin

Binary NxK matrix indicating whether sample unit s ranked item i.

n_rank

Numeric vector of length N with the number of items ranked by each sample unit.

rate0

Numeric vector of G rate hyperparameters.

Value

Numeric GxK matrix of rate parameters.


cmollica/PLMIX documentation built on Dec. 31, 2020, 10:04 p.m.