ctsem (version 3.10.0)

ctModelHigherOrder: 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
)

Value

extended ctModel

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?

Examples

Run this code
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)

Run the code above in your browser using DataLab