buildCompMat: Build the composition matrix for a certain dimension m...

View source: R/buildCompMat.R

buildCompMatR Documentation

Build the composition matrix for a certain dimension m dimensions

Description

Build the composition matrix for a certain dimension m dimensions

Usage

buildCompMat(
  colMat,
  paramEsts,
  latentVar,
  m,
  norm = TRUE,
  id = seq_len(m),
  subtractMax = TRUE
)

Arguments

colMat

The nxp independence model composition matrix

paramEsts

The matrix of feature parameter estimates

latentVar

The matrix of latent variables

m

the required dimension

norm

a boolean, should the composition matrix be normalized?

id

The vector of dimensions to consider

subtractMax

A boolean, should the maximum be substracted from every composition prior to exponentiation? Recommended for numerical stability

Value

A matrix with compositions in the rows


CenterForStatistics-UGent/compIntegrate documentation built on Aug. 4, 2023, 1:08 p.m.