View source: R/ctModelHigherOrder.R
| ctModelHigherOrder | R Documentation | 
Raise the order of a ctsem model object of type 'omx'.
ctModelHigherOrder(
  ctm,
  indices,
  diffusion = TRUE,
  crosseffects = FALSE,
  cint = FALSE,
  explosive = FALSE
)
| 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? | 
extended ctModel
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.