Skip to contents

Assemble the parameter vector starting from the threshold vector, the latent covariance matrix and the loading matrix

Usage

get_theta(
  THRESHOLDS,
  LOADINGS,
  LATENT_COV,
  CAT,
  CONSTRMAT,
  CONSTRVAR,
  CORRFLAG,
  STDLV
)

Arguments

THRESHOLDS

Numerical vector of thresholds parameters. If all the \(p\) items have \(c\) possible categories, it contains \(p(c-1)\) elements.

LOADINGS

Numerical matrix of dimension \(p*q\), where \(q\) is the number of latent variables.

LATENT_COV

Latent covariance matrix of dimension \(q*q\).

CAT

Integer vector storing the possible number of categories for each item. Values must be ordered following items order in the dataset.

CONSTRMAT

\(p*q\)-dimensional matrix. Elements set to NA refers to free loading parameters. Elements set to numerical values denote fixed values constraints.

CONSTRVAR

\(q\)-dimensional vector. Elements set to NA refers to free latent variance parameters. Elements set to numerical values denote fixed values constraints.

CORRFLAG

Logical indicator. Set it to FALSE if the latent variables are independent. Set it TRUE otherwise.

STDLV

Logical indicator. Set it to TRUE to fix latent variables scale. Set it FALSE to fix loadings scale.