Skip to contents

Fills the S matrix (covariances) given the S matrix, the discreteDIFFUSIONUnique (list with discrete diffusion names, dTs and results), MANIFESTVAR (manifest variance), and cppSParameterIndicators (tells fillS where to put the discreteDIFFUSIONUnique and MANIFESTVAR) The implementation closely follows that of Driver, C. C., Oud, J. H. L., & Voelkle, M. C. (2017). Continuous Time Structural Equation Modelling With R Package ctsem. Journal of Statistical Software, 77(5), 1–36. https://doi.org/10.18637/jss.v077.i05

Usage

fillS(
  S,
  T0VAR,
  MANIFESTVAR,
  hasDiscreteTRAITUnique,
  TRAITVAR,
  hasDiscreteDIFFUSIONUnique,
  discreteDIFFUSIONUnique,
  SParameterIndicators
)

Arguments

S

matrix with undirected effects

T0VAR

matrix with initial covariances

MANIFESTVAR

manifest variance

hasDiscreteTRAITUnique

boolean

TRAITVAR

trait variance

hasDiscreteDIFFUSIONUnique

boolean

discreteDIFFUSIONUnique

list with discrete diffusion names, dTs and results

SParameterIndicators

tells fillS where to put the discreteDIFFUSIONUnique and MANIFESTVAR