I have heard already about OpenMX from other package ctsem.
ctsem is using OpenMX functions to create DSEM models. In instruction pdf for ctsem thera are some cases of DSEM model only with one observation, but I don't get how the model looks like...
genm <- ctModel(Tpoints = 200, n.latent = 2, n.manifest = 1, # creating model with lag 2 and one observation
LAMBDA = matrix(c(1, 0), nrow = 1, ncol = 2),
DIFFUSION = matrix(c(0, 0, 0, 1), 2),
MANIFESTVAR = t(chol(diag(.6, 1))),
DRIFT = matrix(c(0, -0.1, 1, -0.2), nrow = 2),
CINT = matrix(c(1, 0), nrow = 2))
data <- ctGenerate(genm, n.subjects = 1, burnin = 200) # generating 200 observation from this model and ???
ctIndplot(data, n.subjects = 1 , n.manifest = 1, Tpoints = 200) # ploting time series
model <- ctModel(Tpoints = 200, n.latent = 2, n.manifest = 1, # making another model with lag 2 and one observation
LAMBDA = matrix(c(1, 0), nrow = 1, ncol = 2),
DIFFUSION = matrix(c(0, 0, 0, "diffusion"), 2),
DRIFT = matrix(c(0, "regulation", 1, "diffusionAR"), nrow = 2))
fit <- ctFit(data, model, stationary = "T0VAR") # fiting new model.