{
  "_id": "6ae3361d3d0f299392dd145e",
  "Package": "ctsem",
  "Type": "Package",
  "Title": "Continuous Time Structural Equation Modelling",
  "Version": "3.11.1",
  "Date": "2026-7-10",
  "Authors@R": "c(person(\"Charles\", \"Driver\", role =\nc(\"aut\",\"cre\",\"cph\"),email=\"charles.driver2@uzh.ch\"),\nperson(\"Manuel\", \"Voelkle\", role = c(\"aut\",\"cph\")),\nperson(\"Han\", \"Oud\", role = c(\"aut\",\"cph\") ),\nperson(\"Trustees of Columbia University\",role='cph'))",
  "Description": "Hierarchical continuous (and discrete) time state space\nmodelling, for linear and nonlinear systems measured by\ncontinuous variables, with limited support for binary data. The\nsubject specific dynamic system is modelled as a stochastic\ndifferential equation (SDE) or difference equation, measurement\nmodels are typically multivariate normal factor models. Linear\nmixed effects SDE's estimated via maximum likelihood and\noptimization are the default. Nonlinearities, (state dependent\nparameters) and random effects on all parameters are possible,\nusing either max likelihood / max a posteriori optimization\n(with optional importance sampling) or Stan's Hamiltonian Monte\nCarlo sampling. See\n<https://github.com/cdriveraus/ctsem/raw/master/vignettes/hierarchicalmanual.pdf>\nfor details. See <https://osf.io/preprints/psyarxiv/4q9ex_v2>\nfor a detailed tutorial. Priors may be used. For the conceptual\noverview of the hierarchical Bayesian linear SDE approach, see\n<https://www.researchgate.net/publication/324093594_Hierarchical_Bayesian_Continuous_Time_Dynamic_Modeling>.\nExogenous inputs may also be included, for an overview of such\npossibilities see\n<https://www.researchgate.net/publication/328221807_Understanding_the_Time_Course_of_Interventions_with_Continuous_Time_Dynamic_Models>\n. <https://cdriver.netlify.app/> contains some tutorial blog\nposts.",
  "License": "GPL-3",
  "URL": "https://github.com/cdriveraus/ctsem",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "ByteCompile": "true",
  "VignetteBuilder": "knitr, quarto",
  "SystemRequirements": "GNU make",
  "NeedsCompilation": "yes",
  "Biarch": "true",
  "Config/roxygen2/version": "8.0.0",
  "Packaged": {
    "Date": "2026-10-29 11:41:59 UTC",
    "User": "root"
  },
  "Author": "Charles Driver [aut, cre, cph], Manuel Voelkle [aut, cph], Han\nOud [aut, cph], Trustees of Columbia University [cph]",
  "Maintainer": "Charles Driver <charles.driver2@uzh.ch>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-07-13 13:10:02 UTC",
  "RemoteUrl": "https://github.com/cran/ctsem",
  "RemoteRef": "HEAD",
  "RemoteSha": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
  "_user": "cran",
  "_type": "src",
  "_file": "ctsem_3.11.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/807217b23ae98ee429d9008ff186e4855724d7a32c9746455651918254a1aad5",
  "_filesize": 2877819,
  "_sha256": "807217b23ae98ee429d9008ff186e4855724d7a32c9746455651918254a1aad5",
  "_expires": "2027-02-06T12:03:39.000Z",
  "_created": "2026-10-29T11:41:59.000Z",
  "_published": "2026-10-29T12:03:41.378Z",
  "_upstream": "https://github.com/cran/ctsem",
  "_status": "success",
  "_maintainer": {
    "name": "Charles Driver",
    "email": "charles.driver2@uzh.ch",
    "login": "cdriveraus",
    "bluesky": "@charlesdriver.bsky.social",
    "description": "",
    "uuid": 4108549
  },
  "_jobs": [
    {
      "job": 123427570709,
      "time": 665,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12895530829"
    },
    {
      "job": 123427570616,
      "time": 768,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12894679413"
    },
    {
      "job": 123427570607,
      "time": 702,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12894588797"
    },
    {
      "job": 123427570560,
      "time": 541,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12895640401"
    },
    {
      "job": 123421398303,
      "time": 854,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12893499428"
    },
    {
      "job": 123427570522,
      "time": 408,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12895705142"
    },
    {
      "job": 123427570608,
      "time": 840,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12895476463"
    },
    {
      "job": 123427570763,
      "time": 992,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12895092989"
    },
    {
      "job": 123427570618,
      "time": 798,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12894504979"
    },
    {
      "job": 123427570602,
      "time": 825,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12894819014"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239",
  "_commit": {
    "id": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
    "author": "Charles Driver <charles.driver2@uzh.ch>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 3.11.1\n",
    "time": 1783948202
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.16",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0-1",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.16",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.4.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.26",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.26.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "cOde",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.12.8",
      "role": "Imports"
    },
    {
      "package": "datasets",
      "role": "Imports"
    },
    {
      "package": "Deriv",
      "role": "Imports"
    },
    {
      "package": "expm",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "mize",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.0",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.3.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tools",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "parallelly",
      "role": "Imports"
    },
    {
      "package": "corpcor",
      "role": "Imports"
    },
    {
      "package": "png",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "tinytex",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    },
    {
      "package": "arules",
      "role": "Suggests"
    },
    {
      "package": "collapse",
      "role": "Suggests"
    },
    {
      "package": "qgam",
      "role": "Suggests"
    },
    {
      "package": "papaja",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "future.apply",
      "role": "Suggests"
    },
    {
      "package": "diagis",
      "role": "Suggests"
    },
    {
      "package": "pdftools",
      "role": "Suggests"
    },
    {
      "package": "rstudioapi",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-04",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-27",
      "n": 1
    },
    {
      "week": "2026-29",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "3.10.5",
      "date": "2026-01-20"
    },
    {
      "name": "3.10.6",
      "date": "2026-01-27"
    },
    {
      "name": "3.11.0",
      "date": "2026-06-30"
    },
    {
      "name": "3.11.1",
      "date": "2026-07-13"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "cdriveraus",
      "count": 9,
      "uuid": 4108549
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 1200,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ctsem"
  },
  "_mentions": 2,
  "_devurl": "https://github.com/cdriveraus/ctsem",
  "_searchresults": 250,
  "_quarto": true,
  "_topics": [
    "quarto",
    "onetbb",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/ctsem.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/cdriveraus/ctsem",
  "_realowner": "cdriveraus",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.1.1",
      "date": "2015-08-10"
    },
    {
      "version": "1.1.3",
      "date": "2015-10-12"
    },
    {
      "version": "1.1.5",
      "date": "2015-12-16"
    },
    {
      "version": "1.1.5.1",
      "date": "2016-02-17"
    },
    {
      "version": "1.1.5.2",
      "date": "2016-02-25"
    },
    {
      "version": "1.1.6",
      "date": "2016-06-15"
    },
    {
      "version": "2.0.0",
      "date": "2016-11-19"
    },
    {
      "version": "2.1.0",
      "date": "2016-12-22"
    },
    {
      "version": "2.1.1",
      "date": "2017-01-07"
    },
    {
      "version": "2.2.0",
      "date": "2017-01-25"
    },
    {
      "version": "2.3.0",
      "date": "2017-03-07"
    },
    {
      "version": "2.3.1",
      "date": "2017-04-06"
    },
    {
      "version": "2.4.0",
      "date": "2017-05-17"
    },
    {
      "version": "2.5.0",
      "date": "2017-10-18"
    },
    {
      "version": "2.6.4",
      "date": "2018-06-10"
    },
    {
      "version": "2.6.5",
      "date": "2018-06-25"
    },
    {
      "version": "2.7.4",
      "date": "2018-11-09"
    },
    {
      "version": "2.7.6",
      "date": "2018-11-20"
    },
    {
      "version": "2.8.2",
      "date": "2019-02-03"
    },
    {
      "version": "2.9.0",
      "date": "2019-04-13"
    },
    {
      "version": "2.9.6",
      "date": "2019-05-29"
    },
    {
      "version": "3.0.0",
      "date": "2019-07-31"
    },
    {
      "version": "3.0.1",
      "date": "2019-08-23"
    },
    {
      "version": "3.0.3",
      "date": "2019-09-11"
    },
    {
      "version": "3.0.4",
      "date": "2019-09-13"
    },
    {
      "version": "3.0.8",
      "date": "2019-11-08"
    },
    {
      "version": "3.0.9",
      "date": "2019-12-18"
    },
    {
      "version": "3.1.0",
      "date": "2020-01-27"
    },
    {
      "version": "3.1.1",
      "date": "2020-02-11"
    },
    {
      "version": "3.2.0",
      "date": "2020-04-21"
    },
    {
      "version": "3.2.1",
      "date": "2020-04-26"
    },
    {
      "version": "3.3.6",
      "date": "2020-06-23"
    },
    {
      "version": "3.3.8",
      "date": "2020-07-16"
    },
    {
      "version": "3.3.11",
      "date": "2020-09-16"
    },
    {
      "version": "3.4.1",
      "date": "2020-12-18"
    },
    {
      "version": "3.4.2",
      "date": "2021-02-24"
    },
    {
      "version": "3.4.3",
      "date": "2021-04-27"
    },
    {
      "version": "3.5.0",
      "date": "2021-06-01"
    },
    {
      "version": "3.5.2",
      "date": "2021-06-17"
    },
    {
      "version": "3.5.3",
      "date": "2021-06-17"
    },
    {
      "version": "3.5.4",
      "date": "2021-07-23"
    },
    {
      "version": "3.5.5",
      "date": "2022-02-16"
    },
    {
      "version": "3.6.0",
      "date": "2022-03-10"
    },
    {
      "version": "3.7.1",
      "date": "2022-08-08"
    },
    {
      "version": "3.7.2",
      "date": "2022-11-06"
    },
    {
      "version": "3.7.6",
      "date": "2023-03-26"
    },
    {
      "version": "3.8.1",
      "date": "2023-09-05"
    },
    {
      "version": "3.9.0",
      "date": "2023-09-14"
    },
    {
      "version": "3.9.1",
      "date": "2023-10-30"
    },
    {
      "version": "3.10.0",
      "date": "2024-05-09"
    },
    {
      "version": "3.10.1",
      "date": "2024-08-19"
    },
    {
      "version": "3.10.2",
      "date": "2025-01-13"
    },
    {
      "version": "3.10.3",
      "date": "2025-06-21"
    },
    {
      "version": "3.10.4",
      "date": "2025-06-30"
    },
    {
      "version": "3.10.5",
      "date": "2026-01-20"
    },
    {
      "version": "3.10.6",
      "date": "2026-01-27"
    },
    {
      "version": "3.11.0",
      "date": "2026-06-30"
    },
    {
      "version": "3.11.1",
      "date": "2026-07-13"
    }
  ],
  "_exports": [
    "ctACF",
    "ctACFresiduals",
    "ctAddSamples",
    "ctCheckFit",
    "ctChisqTest",
    "ctCollapse",
    "ctDeintervalise",
    "ctDiscretePars",
    "ctDiscreteParsPlot",
    "ctDiscretiseData",
    "ctDocs",
    "ctEmpiricalBayesFit",
    "ctExtract",
    "ctFit",
    "ctFitAddSamples",
    "ctFitCovCheck",
    "ctFitCovCheckPlot",
    "ctFitUpdate",
    "ctFitUpdateModel",
    "ctGenerate",
    "ctGenerateFromFit",
    "ctGenerateFromPriors",
    "ctIntervalise",
    "ctKalman",
    "ctKalmanArray",
    "ctLongToWide",
    "ctLOO",
    "ctModel",
    "ctModelConvertOMX",
    "ctModelCoverage_check",
    "ctModelHigherOrder",
    "ctModelLatex",
    "ctModelMatrices",
    "ctModelMatrices<-",
    "ctOptimUncertainty",
    "ctPlotArray",
    "ctPlotPosterior",
    "ctPoly",
    "ctPostPredData",
    "ctPostPredict",
    "ctPostPredPlots",
    "ctPredict",
    "ctPredictTIP",
    "ctRawParnames",
    "ctResiduals",
    "ctStanContinuousPars",
    "ctStanDiscretePars",
    "ctStanDiscreteParsPlot",
    "ctStanFit",
    "ctStanFitUpdate",
    "ctStanGenerate",
    "ctStanGenerateFromFit",
    "ctStanKalman",
    "ctStanModel",
    "ctStanParnames",
    "ctStanPlotPost",
    "ctStanPostPredict",
    "ctStanSubjectPars",
    "ctStanTIpredeffects",
    "ctStanUpdModel",
    "ctSubjectPars",
    "ctSummaryMatrices",
    "ctTIpredEffects",
    "ctWideNames",
    "ctWideToLong",
    "inv_logit",
    "log1p_exp",
    "plot.ctKalmanDF",
    "plotctACF",
    "sdpcor2cov",
    "stan_reinitsf",
    "stan_unconstrainsamples",
    "standatact_specificsubjects",
    "stanWplot",
    "test_isclose"
  ],
  "_datasets": [
    {
      "name": "AnomAuth",
      "title": "AnomAuth",
      "object": "AnomAuth",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y1_T0",
        "Y2_T0",
        "Y1_T1",
        "Y2_T1",
        "Y1_T2",
        "Y2_T2",
        "Y1_T3",
        "Y2_T3",
        "Y1_T4",
        "Y2_T4",
        "dT1",
        "dT2",
        "dT3",
        "dT4"
      ],
      "rows": 2722,
      "table": true,
      "tojson": true
    },
    {
      "name": "ctExample1",
      "title": "ctExample1",
      "object": "ctExample1",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "LeisureTime_T0",
        "Happiness_T0",
        "LeisureTime_T1",
        "Happiness_T1",
        "LeisureTime_T2",
        "Happiness_T2",
        "LeisureTime_T3",
        "Happiness_T3",
        "LeisureTime_T4",
        "Happiness_T4",
        "LeisureTime_T5",
        "Happiness_T5",
        "dT1",
        "dT2",
        "dT3",
        "dT4",
        "dT5"
      ],
      "rows": 100,
      "table": true,
      "tojson": true
    },
    {
      "name": "ctExample1TIpred",
      "title": "ctExample1TIpred",
      "object": "ctExample1TIpred",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "LeisureTime_T0",
        "Happiness_T0",
        "LeisureTime_T1",
        "Happiness_T1",
        "LeisureTime_T2",
        "Happiness_T2",
        "LeisureTime_T3",
        "Happiness_T3",
        "LeisureTime_T4",
        "Happiness_T4",
        "LeisureTime_T5",
        "Happiness_T5",
        "dT1",
        "dT2",
        "dT3",
        "dT4",
        "dT5",
        "NumFriends"
      ],
      "rows": 100,
      "table": true,
      "tojson": true
    },
    {
      "name": "ctExample2",
      "title": "ctExample2",
      "object": "ctExample2",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "LeisureTime_T0",
        "Happiness_T0",
        "LeisureTime_T1",
        "Happiness_T1",
        "LeisureTime_T2",
        "Happiness_T2",
        "LeisureTime_T3",
        "Happiness_T3",
        "LeisureTime_T4",
        "Happiness_T4",
        "LeisureTime_T5",
        "Happiness_T5",
        "LeisureTime_T6",
        "Happiness_T6",
        "LeisureTime_T7",
        "Happiness_T7",
        "MoneyInt_T0",
        "MoneyInt_T1",
        "MoneyInt_T2",
        "MoneyInt_T3",
        "MoneyInt_T4",
        "MoneyInt_T5",
        "MoneyInt_T6",
        "MoneyInt_T7",
        "dT1",
        "dT2",
        "dT3",
        "dT4",
        "dT5",
        "dT6",
        "dT7"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "ctExample3",
      "title": "ctExample3",
      "object": "ctExample3",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [],
      "rows": 1,
      "table": true,
      "tojson": true
    },
    {
      "name": "ctExample4",
      "title": "ctExample4",
      "object": "ctExample4",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "Y1_T0",
        "Y2_T0",
        "Y3_T0",
        "Y1_T1",
        "Y2_T1",
        "Y3_T1",
        "Y1_T2",
        "Y2_T2",
        "Y3_T2",
        "Y1_T3",
        "Y2_T3",
        "Y3_T3",
        "Y1_T4",
        "Y2_T4",
        "Y3_T4",
        "Y1_T5",
        "Y2_T5",
        "Y3_T5",
        "Y1_T6",
        "Y2_T6",
        "Y3_T6",
        "Y1_T7",
        "Y2_T7",
        "Y3_T7",
        "Y1_T8",
        "Y2_T8",
        "Y3_T8",
        "Y1_T9",
        "Y2_T9",
        "Y3_T9",
        "Y1_T10",
        "Y2_T10",
        "Y3_T10",
        "Y1_T11",
        "Y2_T11",
        "Y3_T11",
        "Y1_T12",
        "Y2_T12",
        "Y3_T12",
        "Y1_T13",
        "Y2_T13",
        "Y3_T13",
        "Y1_T14",
        "Y2_T14",
        "Y3_T14",
        "Y1_T15",
        "Y2_T15",
        "Y3_T15",
        "Y1_T16",
        "Y2_T16",
        "Y3_T16",
        "Y1_T17",
        "Y2_T17",
        "Y3_T17",
        "Y1_T18",
        "Y2_T18",
        "Y3_T18",
        "Y1_T19",
        "Y2_T19",
        "Y3_T19",
        "dT1",
        "dT2",
        "dT3",
        "dT4",
        "dT5",
        "dT6",
        "dT7",
        "dT8",
        "dT9",
        "dT10",
        "dT11",
        "dT12",
        "dT13",
        "dT14",
        "dT15",
        "dT16",
        "dT17",
        "dT18",
        "dT19"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    },
    {
      "name": "ctstantestdat",
      "title": "ctstantestdat",
      "object": "ctstantestdat",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "id",
        "time",
        "Y1",
        "Y2",
        "TD1",
        "TI1",
        "TI2",
        "TI3"
      ],
      "rows": 300,
      "table": true,
      "tojson": true
    },
    {
      "name": "ctstantestfit",
      "title": "ctstantestfit",
      "object": "ctstantestfit",
      "class": [
        "ctStanFit"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "datastructure",
      "title": "datastructure",
      "object": "datastructure",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "Y1_T0",
        "Y2_T0",
        "Y3_T0",
        "Y1_T1",
        "Y2_T1",
        "Y3_T1",
        "Y1_T2",
        "Y2_T2",
        "Y3_T2",
        "TD1_T0",
        "TD1_T1",
        "TD1_T2",
        "dT1",
        "dT2",
        "TI1",
        "TI2"
      ],
      "rows": 2,
      "table": true,
      "tojson": true
    },
    {
      "name": "longexample",
      "title": "longexample",
      "object": "longexample",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "id",
        "time",
        "Y1",
        "Y2",
        "Y3",
        "TD1",
        "TI1",
        "TI2"
      ],
      "rows": 7,
      "table": true,
      "tojson": true
    },
    {
      "name": "Oscillating",
      "title": "Oscillating",
      "object": "Oscillating",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y1_T0",
        "Y1_T1",
        "Y1_T2",
        "Y1_T3",
        "Y1_T4",
        "Y1_T5",
        "Y1_T6",
        "Y1_T7",
        "Y1_T8",
        "Y1_T9",
        "Y1_T10",
        "dT1",
        "dT2",
        "dT3",
        "dT4",
        "dT5",
        "dT6",
        "dT7",
        "dT8",
        "dT9",
        "dT10"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ctsem-package",
      "title": "ctsem",
      "topics": [
        "ctsem-package",
        "ctsem"
      ]
    },
    {
      "page": "AnomAuth",
      "title": "AnomAuth",
      "topics": [
        "AnomAuth"
      ]
    },
    {
      "page": "ctACF",
      "title": "Continuous Time Autocorrelation Function (ctACF)",
      "topics": [
        "ctACF"
      ]
    },
    {
      "page": "ctACFresiduals",
      "title": "Calculate Continuous Time Autocorrelation Function (ACF) for Standardized Residuals of ctsem fit.",
      "topics": [
        "ctACFresiduals"
      ]
    },
    {
      "page": "ctCheckFit",
      "title": "Visual model fit diagnostics for ctsem fit objects.",
      "topics": [
        "ctCheckFit"
      ]
    },
    {
      "page": "ctChisqTest",
      "title": "Chi Square test wrapper for ctStanFit objects.",
      "topics": [
        "ctChisqTest"
      ]
    },
    {
      "page": "ctCollapse",
      "title": "ctCollapse Easily collapse an array margin using a specified function.",
      "topics": [
        "ctCollapse"
      ]
    },
    {
      "page": "ctDeintervalise",
      "title": "ctDeintervalise",
      "topics": [
        "ctDeintervalise"
      ]
    },
    {
      "page": "ctDiscretePars",
      "title": "ctDiscretePars",
      "topics": [
        "ctDiscretePars",
        "ctStanDiscretePars"
      ]
    },
    {
      "page": "ctDiscreteParsPlot",
      "title": "ctDiscreteParsPlot",
      "topics": [
        "ctDiscreteParsPlot",
        "ctStanDiscreteParsPlot"
      ]
    },
    {
      "page": "ctDiscretiseData",
      "title": "Discretise long format continuous time (ctsem) data to specific timestep.",
      "topics": [
        "ctDiscretiseData"
      ]
    },
    {
      "page": "ctDocs",
      "title": "Get documentation pdf for ctsem",
      "topics": [
        "ctDocs"
      ]
    },
    {
      "page": "ctEmpiricalBayesFit",
      "title": "Empirical Bayes subject-wise ctsem fits",
      "topics": [
        "ctEmpiricalBayesFit"
      ]
    },
    {
      "page": "ctExample1",
      "title": "ctExample1",
      "topics": [
        "ctExample1"
      ]
    },
    {
      "page": "ctExample1TIpred",
      "title": "ctExample1TIpred",
      "topics": [
        "ctExample1TIpred"
      ]
    },
    {
      "page": "ctExample2",
      "title": "ctExample2",
      "topics": [
        "ctExample2"
      ]
    },
    {
      "page": "ctExample2level",
      "title": "ctExample2level",
      "topics": [
        "ctExample2level"
      ]
    },
    {
      "page": "ctExample3",
      "title": "ctExample3",
      "topics": [
        "ctExample3"
      ]
    },
    {
      "page": "ctExample4",
      "title": "ctExample4",
      "topics": [
        "ctExample4"
      ]
    },
    {
      "page": "ctExtract",
      "title": "Extract samples from a ctStanFit object",
      "topics": [
        "ctExtract",
        "extract"
      ]
    },
    {
      "page": "ctFit",
      "title": "Fit a ctsem model",
      "topics": [
        "ctFit",
        "ctStanFit"
      ]
    },
    {
      "page": "ctFitAddSamples",
      "title": "Sample more values from an optimized ctstanfit object",
      "topics": [
        "ctAddSamples",
        "ctFitAddSamples"
      ]
    },
    {
      "page": "ctFitCovCheck",
      "title": "Visual lagged covariance or correlation diagnostics for ctsem fits.",
      "topics": [
        "ctFitCovCheck"
      ]
    },
    {
      "page": "ctFitCovCheckPlot",
      "title": "ctFitCovCheckPlot",
      "topics": [
        "ctFitCovCheckPlot"
      ]
    },
    {
      "page": "ctFitUpdate",
      "title": "Update a ctStanFit object",
      "topics": [
        "ctFitUpdate",
        "ctStanFitUpdate"
      ]
    },
    {
      "page": "ctFitUpdateModel",
      "title": "Update model/data for an already compiled and fit ctsem object",
      "topics": [
        "ctFitUpdateModel",
        "ctStanUpdModel"
      ]
    },
    {
      "page": "ctGenerate",
      "title": "ctGenerate",
      "topics": [
        "ctGenerate"
      ]
    },
    {
      "page": "ctGenerateFromFit",
      "title": "Add a '$generated' object to ctstanfit object, with random data generated from posterior of ctstanfit object",
      "topics": [
        "ctGenerateFromFit",
        "ctStanGenerateFromFit"
      ]
    },
    {
      "page": "ctGenerateFromPriors",
      "title": "Generate data from a ctstanmodel object",
      "topics": [
        "ctGenerateFromPriors",
        "ctStanGenerate"
      ]
    },
    {
      "page": "ctIntervalise",
      "title": "Converts absolute times to intervals for wide format ctsem panel data",
      "topics": [
        "ctIntervalise"
      ]
    },
    {
      "page": "ctKalmanArray",
      "title": "Get Kalman filter estimates from a ctStanFit object",
      "topics": [
        "ctKalmanArray",
        "ctStanKalman"
      ]
    },
    {
      "page": "ctLongToWide",
      "title": "ctLongToWide Restructures time series / panel data from long format to wide format for ctsem analysis",
      "topics": [
        "ctLongToWide"
      ]
    },
    {
      "page": "ctLOO",
      "title": "K fold cross validation for ctStanFit objects",
      "topics": [
        "ctLOO"
      ]
    },
    {
      "page": "ctModel",
      "title": "Define a ctsem model",
      "topics": [
        "ctModel"
      ]
    },
    {
      "page": "ctModelConvertOMX",
      "title": "Convert an old OpenMx-style ctsem model to the modern ctsem model format.",
      "topics": [
        "ctModelConvertOMX",
        "ctStanModel"
      ]
    },
    {
      "page": "ctModelCoverage_check",
      "title": "Coverage Check Function",
      "topics": [
        "ctModelCoverage_check"
      ]
    },
    {
      "page": "ctModelHigherOrder",
      "title": "Raise the order of a ctsem type ='omx' model object.",
      "topics": [
        "ctModelHigherOrder"
      ]
    },
    {
      "page": "ctModelLatex",
      "title": "Generate and optionally compile latex equation of subject level ctsem model.",
      "topics": [
        "ctModelLatex"
      ]
    },
    {
      "page": "ctModelMatrices",
      "title": "Matrix view for ctStanModel objects",
      "topics": [
        "ctModelMatrices",
        "ctModelMatrices<-"
      ]
    },
    {
      "page": "ctOptimUncertainty",
      "title": "Update optimized ctsem uncertainty estimates",
      "topics": [
        "ctOptimUncertainty"
      ]
    },
    {
      "page": "ctPlotArray",
      "title": "Plots three dimensional y values for quantile plots",
      "topics": [
        "ctPlotArray"
      ]
    },
    {
      "page": "ctPlotPosterior",
      "title": "ctPlotPosterior",
      "topics": [
        "ctPlotPosterior",
        "ctStanPlotPost"
      ]
    },
    {
      "page": "ctPoly",
      "title": "Plots uncertainty bands with shading",
      "topics": [
        "ctPoly"
      ]
    },
    {
      "page": "ctPostPredData",
      "title": "Create a data.table to compare data generated from a ctsem fit with the original data.",
      "topics": [
        "ctPostPredData"
      ]
    },
    {
      "page": "ctPostPredict",
      "title": "Compares model implied density and values to observed, for a ctStanFit object.",
      "topics": [
        "ctPostPredict",
        "ctStanPostPredict"
      ]
    },
    {
      "page": "ctPostPredPlots",
      "title": "Create diagnostic plots to assess the goodness-of-fit for a ctsem model.",
      "topics": [
        "ctPostPredPlots"
      ]
    },
    {
      "page": "ctPredict",
      "title": "ctPredict",
      "topics": [
        "ctKalman",
        "ctPredict"
      ]
    },
    {
      "page": "ctPredictTIP",
      "title": "ctPredictTIP",
      "topics": [
        "ctPredictTIP"
      ]
    },
    {
      "page": "ctRawParnames",
      "title": "ctRawParnames",
      "topics": [
        "ctRawParnames",
        "ctStanParnames"
      ]
    },
    {
      "page": "ctResiduals",
      "title": "Extract Standardized Residuals from a ctsem Fit",
      "topics": [
        "ctResiduals"
      ]
    },
    {
      "page": "ctstantestdat",
      "title": "ctstantestdat",
      "topics": [
        "ctstantestdat"
      ]
    },
    {
      "page": "ctstantestfit",
      "title": "ctstantestfit",
      "topics": [
        "ctstantestfit"
      ]
    },
    {
      "page": "ctSubjectPars",
      "title": "Extract an array of subject specific parameters from a ctStanFit object.",
      "topics": [
        "ctStanSubjectPars",
        "ctSubjectPars"
      ]
    },
    {
      "page": "ctSummaryMatrices",
      "title": "ctSummaryMatrices",
      "topics": [
        "ctStanContinuousPars",
        "ctSummaryMatrices"
      ]
    },
    {
      "page": "ctTIpredEffects",
      "title": "Get time independent predictor effect estimates",
      "topics": [
        "ctStanTIpredeffects",
        "ctTIpredEffects"
      ]
    },
    {
      "page": "ctWideNames",
      "title": "ctWideNames sets default column names for wide ctsem datasets. Primarily intended for internal ctsem usage.",
      "topics": [
        "ctWideNames"
      ]
    },
    {
      "page": "ctWideToLong",
      "title": "ctWideToLong Convert ctsem wide to long format",
      "topics": [
        "ctWideToLong"
      ]
    },
    {
      "page": "datastructure",
      "title": "datastructure",
      "topics": [
        "datastructure"
      ]
    },
    {
      "page": "inv_logit",
      "title": "Inverse logit",
      "topics": [
        "inv_logit"
      ]
    },
    {
      "page": "log1p_exp",
      "title": "log1p_exp",
      "topics": [
        "log1p_exp"
      ]
    },
    {
      "page": "longexample",
      "title": "longexample",
      "topics": [
        "longexample"
      ]
    },
    {
      "page": "Oscillating",
      "title": "Oscillating",
      "topics": [
        "Oscillating"
      ]
    },
    {
      "page": "plot.ctKalmanDF",
      "title": "Plots prediction output from ctPredict.",
      "topics": [
        "plot.ctKalmanDF"
      ]
    },
    {
      "page": "plot.ctStanFit",
      "title": "plot.ctStanFit",
      "topics": [
        "ctStanPlot",
        "plot.ctStanFit"
      ]
    },
    {
      "page": "plot.ctStanModel",
      "title": "Prior plotting",
      "topics": [
        "plot.ctStanModel"
      ]
    },
    {
      "page": "plotctACF",
      "title": "Plot an approximate continuous-time ACF object from ctACF",
      "topics": [
        "plotctACF"
      ]
    },
    {
      "page": "print.summary.ctStanFit",
      "title": "Print ctStanFit summaries",
      "topics": [
        "print.summary.ctStanFit"
      ]
    },
    {
      "page": "sdpcor2cov",
      "title": "sdcor2cov",
      "topics": [
        "sdpcor2cov"
      ]
    },
    {
      "page": "stan_reinitsf",
      "title": "Quickly initialise stanfit object from model and data",
      "topics": [
        "stan_reinitsf"
      ]
    },
    {
      "page": "stan_unconstrainsamples",
      "title": "Convert samples from a stanfit object to the unconstrained scale",
      "topics": [
        "stan_unconstrainsamples"
      ]
    },
    {
      "page": "standatact_specificsubjects",
      "title": "Adjust standata from ctsem to only use specific subjects",
      "topics": [
        "standatact_specificsubjects"
      ]
    },
    {
      "page": "stanoptimis",
      "title": "Optimize / importance sample a stan or ctStan model.",
      "topics": [
        "stanoptimis"
      ]
    },
    {
      "page": "stanWplot",
      "title": "Runs stan, and plots sampling information while sampling.",
      "topics": [
        "stanWplot"
      ]
    },
    {
      "page": "summary.ctEmpiricalBayesFit",
      "title": "Summarise empirical Bayes subject-wise ctsem fits",
      "topics": [
        "summary.ctEmpiricalBayesFit"
      ]
    },
    {
      "page": "summary.ctStanFit",
      "title": "summary.ctStanFit",
      "topics": [
        "summary.ctStanFit"
      ]
    },
    {
      "page": "test_isclose",
      "title": "Tests if 2 values are close to each other",
      "topics": [
        "test_isclose"
      ]
    }
  ],
  "_readme": "https://github.com/cran/ctsem/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cOde",
    "corpcor",
    "cpp11",
    "data.table",
    "Deriv",
    "desc",
    "distributional",
    "expm",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "loo",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "mize",
    "mvtnorm",
    "numDeriv",
    "otel",
    "parallelly",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "png",
    "posterior",
    "processx",
    "ps",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "tensorA",
    "tibble",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "empirical-bayes-fitting.qmd",
      "filename": "empirical-bayes-fitting.html",
      "title": "Empirical Bayes subject-wise fitting",
      "engine": "quarto::html",
      "headings": [
        "Simulate data",
        "Specify the fitted model",
        "Empirical Bayes subject-wise fits",
        "Standard random-effects fit",
        "Compare subject-level recovery",
        "Initial and final EB subject recovery",
        "Correlation Recovery",
        "Final EB and random-effects subject recovery"
      ],
      "created": "2026-06-30 11:30:13",
      "modified": "2026-06-30 11:30:13",
      "commits": 1
    },
    {
      "source": "hierarchicalmanual.rnw",
      "filename": "hierarchicalmanual.pdf",
      "title": "Introduction to Hierarchical Continuous Time Dynamic Modelling with ctsem",
      "engine": "knitr::knitr_notangle",
      "headings": [
        "Overview",
        "Additional details",
        "Conclusion"
      ],
      "created": "2020-06-23 13:30:02",
      "modified": "2026-07-13 13:10:02",
      "commits": 13
    }
  ],
  "_score": 5.857332496431269,
  "_indexed": false,
  "_nocasepkg": "ctsem",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://cdriveraus.r-universe.dev/ctsem",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.11.1",
      "date": "2026-10-29T11:49:02.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/e42cb4ea2aa2ee50a5ce5526df35b7dc1451b5c303a90e4ac71bb4ae6c439093",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.11.1",
      "date": "2026-10-29T11:50:57.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/ad6a007debed36bdc0423f0a99a298297a14097263db4fd90f30603d9ffa6d67",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "3.11.1",
      "date": "2026-10-29T11:49:08.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/317b2830978449c4ce3dc932e5c9e8b51aef0a2377a885ea8fbfaadd63c906bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "3.11.1",
      "date": "2026-10-29T11:49:23.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/c989a93772bcf9bb2bc7890b0c7da507b575cc421b3e528dbe58a386b1dc8a39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.11.1",
      "date": "2026-10-29T11:49:48.000Z",
      "arch": "emscripten",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/b0d77c00ab87ad7ad2d84d021dae7c20ec8fcd188007222e71f2e18fea6b29d0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.11.1",
      "date": "2026-10-29T11:51:52.000Z",
      "arch": "aarch64",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/d5beb07590b92be3a2fa06f1955388bab6374ce3b381f706c70a6500cc6e592a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.11.1",
      "date": "2026-10-29T11:49:08.000Z",
      "arch": "x86_64",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/b8318588055787dc47bcfd7cbf46bdb67facdb2c4fdae92f444641125675368d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "3.11.1",
      "date": "2026-10-29T11:51:51.000Z",
      "arch": "aarch64",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/65caad95a8c037043be7d3aa4e25149b3c716af454bcbd5b18f2325bcfa54656",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "3.11.1",
      "date": "2026-10-29T11:48:36.000Z",
      "arch": "x86_64",
      "commit": "39371165aabb2c0981a87d104e44e2aa5eef47e1",
      "fileid": "https://r2.ropensci.org/fb87302208bed15f544047a3fba94b609a097f1463c3c66e6927a85e22dcfa3a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40866110239"
    }
  ]
}