sample_x: sample X values according to Hoff (2007) and Murray et al....

Description Usage Arguments Value

View source: R/sample_x.R

Description

sample X values according to Hoff (2007) and Murray et al. (2013) extended rank likelihood approach

Usage

1
sample_x(dat, mode, d_mask, n_levels, margin_vals, x, lambda, alpha, omega)

Arguments

dat

Data matrix.

mode

Margin type. Must be one of "fixed", "mixed" or "multi."

d_mask

Boolean mask of extended rank likelihood.

n_levels

Numeric vector of number of unique values per margin.

margin_vals

List of unique values per margin.

x

N x P Gaussian copula matrix.

lambda

P x K matrix of factor loadings.

alpha

A numeric vector of item-level intercepts.

omega

N x K matrix of factor scores.

Value

List of x matrix and cutpoints.


EandrewJones/mmBPFA documentation built on Feb. 14, 2021, 11:17 p.m.