Skip to content

ctsem

Continuous Time Structural Equation Modelling

v3.10.6 · Jan 27, 2026 · GPL-3

Description

Hierarchical continuous (and discrete) time state space modelling, for linear and nonlinear systems measured by continuous variables, with limited support for binary data. The subject specific dynamic system is modelled as a stochastic differential equation (SDE) or difference equation, measurement models are typically multivariate normal factor models. Linear mixed effects SDE's estimated via maximum likelihood and optimization are the default. Nonlinearities, (state dependent parameters) and random effects on all parameters are possible, using either max likelihood / max a posteriori optimization (with optional importance sampling) or Stan's Hamiltonian Monte Carlo sampling. See <https://github.com/cdriveraus/ctsem/raw/master/vignettes/hierarchicalmanual.pdf> for details. See <https://osf.io/preprints/psyarxiv/4q9ex_v2> for a detailed tutorial. Priors may be used. For the conceptual overview of the hierarchical Bayesian linear SDE approach, see <https://www.researchgate.net/publication/324093594_Hierarchical_Bayesian_Continuous_Time_Dynamic_Modeling>. Exogenous inputs may also be included, for an overview of such possibilities see <https://www.researchgate.net/publication/328221807_Understanding_the_Time_Course_of_Interventions_with_Continuous_Time_Dynamic_Models> . <https://cdriver.netlify.app/> contains some tutorial blog posts.

Downloads

1K

Last 30 days

3632nd

2K

Last 90 days

2K

Last year

Trend: +7.8% (30d vs prior 30d)

CRAN Check Status

1 ERROR
2 NOTE
9 OK
Show all 12 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 ERROR
r-release-macos-arm64 OK
r-release-windows-x86_64 OK
Check details (13 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 198.4Mb
  sub-directories of 1Mb or more:
    R       2.0Mb
    data    1.7Mb
    libs  193.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is 11.6Mb
  sub-directories of 1Mb or more:
    R      1.2Mb
    data   1.7Mb
    libs   7.3Mb
OK r-patched-linux-x86_64

*


            
ERROR r-release-linux-x86_64

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/ctsem.Rcheck/00install.out’ for details.
OK r-release-macos-arm64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 9 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-release-linux-x86_64

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/ctsem.Rcheck/00install.out’ for details.
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 198.4Mb
  sub-directories of 1Mb or more:
    R       2.0Mb
    data    1.7Mb
    libs  193.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is 11.6Mb
  sub-directories of 1Mb or more:
    R      1.2Mb
    data   1.7Mb
    libs   7.3Mb

Reverse Dependencies (2)

depends

Dependency Network

Dependencies Reverse dependencies Rcpp cOde data.table Deriv expm ggplot2 MASS Matrix mize mvtnorm plyr RcppParallel rstan rstantools tibble +3 more dependencies CoTiMA ctsemOMX ctsem

Version History

new 3.10.6 Mar 9, 2026