ctModelHigherOrder: Raise the order of a ctsem model object of type 'omx'.

View source: R/ctModelHigherOrder.R

ctModelHigherOrderR Documentation

Raise the order of a ctsem model object of type 'omx'.

Description

Raise the order of a ctsem model object of type 'omx'.

Usage

ctModelHigherOrder(
  ctm,
  indices,
  diffusion = TRUE,
  crosseffects = FALSE,
  cint = FALSE,
  explosive = FALSE
)

Arguments

ctm

ctModel

indices

Vector of integers, which latents to raise the order of.

diffusion

Shift the diffusion parameters / values to the higher order?

crosseffects

Shift cross coupling parameters of the DRIFT matrix to the higher order?

cint

shift continuous intercepts to higher order?

explosive

Allow explosive (non equilibrium returning) processes?

Value

extended ctModel

Examples

om <- ctModel(LAMBDA=diag(1,2),DRIFT=0, 
  MANIFESTMEANS=0,type='omx',Tpoints=4)
  
om <- ctModelHigherOrder(om,1:2)
print(om$DRIFT)

m <- ctStanModel(om)
print(m$pars)

ctsem documentation built on Sept. 11, 2024, 9:06 p.m.