lhb.mplus: Likelihood Mplus

View source: R/lhb_mplus.R

lhb.mplusR Documentation

Likelihood Mplus

Description

likelihood of rank order under Thurstonian IRT model, using pair intercepts as Mplus

Usage

lhb.mplus(
  traits,
  int,
  loads,
  uni,
  y_b,
  perms,
  perms_int,
  Tr,
  nb,
  algorithm = mvtnorm::TVPACK(),
  loga = TRUE
)

Arguments

traits

vector of traits

int

vector of intercepts and minus intercepts for block b

loads

matrix of factor loadings for block b

uni

matrix of error (co)variances for block b

y_b

index for rank order in perms for block b

perms

permutations (order(rank(), decreasing=F) order(, decreasing=T))

perms_int

indices of intercepts (+ or -)

Tr

matrix of pairwise comparisons (only consecutive ones, last row is ignored)

nb

numeric, block size

algorithm

algorithm to use for numerical approximation in mvtnorm::pmvnorm, defaults to TVPACK()

loga

logical: return logarithmized result? defaults to TRUE

Value

likelihood


susanne-frick/MFCblockInfo documentation built on Oct. 20, 2024, 8:26 p.m.