PLMIXsim: Random generation from a finite mixture of Plackett-Luce...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Random generation from a finite mixture of Plackett-Luce models and subsequent censoring according to a given partial ordering matrix.

Usage

1
PLMIXsim(N, K, G, p, ref_order, weights, rankingFormat, pi_inv)

Arguments

N

Number of sample units.

K

Number of possible items.

G

Number of mixture components.

p

Numeric GxK matrix of component-specific support parameters.

ref_order

Numeric GxK matrix of component-specific reference orders.

weights

Numeric vector of the G mixture weights.

rankingFormat

Logical: whether the final simulated data should be expressed in ranking format.

pi_inv

Numeric NxK data matrix of partial orderings (to replicate the observed missingness patterns).

Value

Numeric NxG matrix of simulated data (default is in ordering format) with the same missingness patterns of pi_inv.


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