ctsem is an R package for continuous time structural equation modelling of panel (N > 1) and time series (N = 1) data, using either a frequentist or Bayesian approach. The frequentist approach is faster but can only estimate random-effects on the intercepts, while the Bayesian approach allows for random-effects across all model parameters.
The general workflow begins by specifying a model using the ctModel
function,
in which the type
of model is also specified. Then the model is fit to data using
either ctFit
if an 'omx' (OpenMx, frequentist) model is specified or
ctStanFit
if a 'stanct' or 'standt' (Stan, continuous / discrete time, Bayesian)
model is specified.
For examples, see either ctFit
or ctStanFit
.
For more detailed information, see the frequentist vignette by running: vignette('ctsem')
For citation info, please run citation('ctsem')
.
https://www.jstatsoft.org/article/view/v077i05
Driver, C. C., & Voelkle, M. C. (2018). Hierarchical Bayesian continuous time dynamic modeling. Psychological Methods. Advance online publication.http://dx.doi.org/10.1037/met0000168
Stan Development Team (2018). RStan: the R interface to Stan. R package version 2.17.3. http://mc-stan.org