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

881

Last 30 days

3900th

2.3K

Last 90 days

9.4K

Last year

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

CRAN Check Status

11 OK
Show all 11 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-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-windows-x86_64 OK

Check History

OK 11 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 17, 2026
ERROR 10 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 7, 2026
ERROR r-patched-linux-x86_64

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/PKGS/ctsem.Rcheck/00install.out’ for details.
OK 11 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 3, 2026
ERROR 9 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 16, 2026
ERROR r-patched-linux-x86_64

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-patched-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
NOTE 10 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 12, 2026
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
ERROR 9 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 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

suggests

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 tidyILD ctsem

Version History

57 tracked
new 3.10.6 Mar 10, 2026
updated 3.10.6 ← 3.10.5 diff Jan 26, 2026
updated 3.10.5 ← 3.10.4 diff Jan 19, 2026
updated 3.10.4 ← 3.10.3 diff Jun 29, 2025
updated 3.10.3 ← 3.10.2 diff Jun 20, 2025
updated 3.10.2 ← 3.10.1 diff Jan 12, 2025
updated 3.10.1 ← 3.10.0 diff Aug 18, 2024
updated 3.10.0 ← 3.9.1 diff May 8, 2024
updated 3.9.1 ← 3.9.0 diff Oct 29, 2023
updated 3.9.0 ← 3.8.1 diff Sep 13, 2023
updated 3.8.1 ← 3.7.6 diff Sep 4, 2023
updated 3.7.6 ← 3.7.2 diff Mar 25, 2023
updated 3.7.2 ← 3.7.1 diff Nov 5, 2022
updated 3.7.1 ← 3.6.0 diff Aug 7, 2022
updated 3.6.0 ← 3.5.5 diff Mar 9, 2022