{
  "_id": "6a103c30acfb0bcc41c9bdc3",
  "Package": "lcsm",
  "Type": "Package",
  "Title": "Univariate and Bivariate Latent Change Score Modelling",
  "Date": "2023-02-25",
  "Version": "0.3.2",
  "Authors@R": "c(\nperson(\"Milan\", \"Wiedemann\", email = \"milan.wiedemann@gmail.com\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-1991-282X\")),\nperson(\"Graham M\", \"Thew\", role = \"ctb\", comment = c(ORCID = \"0000-0003-2851-1315\")),\nperson(\"Urška\", \"Košir\", role = \"ctb\", comment = c(ORCID = \"0000-0003-2132-4090\")),\nperson(\"Anke\", \"Ehlers\", role = c(\"ths\"), comment = c(ORCID = \"0000-0002-8742-0192\")),\nperson(\"Mental Health Research UK\", role = c(\"fnd\"))\n)",
  "Description": "Helper functions to implement univariate and bivariate\nlatent change score models in R using the 'lavaan' package. For\ndetails about Latent Change Score Modeling (LCSM) see McArdle\n(2009) <doi:10.1146/annurev.psych.60.110707.163612> and Grimm,\nAn, McArdle, Zonderman and Resnick (2012)\n<doi:10.1080/10705511.2012.659627>. The package automatically\ngenerates 'lavaan' syntax for different model specifications\nand varying timepoints. The 'lavaan' syntax generated by this\npackage can be returned and further specifications can be added\nmanually. Longitudinal plots as well as simplified path\ndiagrams can be created to visualise data and model\nspecifications. Estimated model parameters and fit statistics\ncan be extracted as data frames. Data for different univariate\nand bivariate LCSM can be simulated by specifying estimates for\nmodel parameters to explore their effects. This package\ncombines the strengths of other R packages like 'lavaan',\n'broom', and 'semPlot' by generating 'lavaan' syntax that helps\nthese packages work together.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "URL": "https://milanwiedemann.github.io/lcsm/",
  "BugReports": "https://github.com/milanwiedemann/lcsm/issues",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "cmake libglpk-dev make libicu-dev libjpeg-dev\nlibpng-dev libuv1-dev libxml2-dev",
  "Repository": "https://milanwiedemann.r-universe.dev",
  "Date/Publication": "2023-02-25 23:20:25 UTC",
  "RemoteUrl": "https://github.com/milanwiedemann/lcsm",
  "RemoteRef": "HEAD",
  "RemoteSha": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-11 10:24:11 UTC",
    "User": "root"
  },
  "Author": "Milan Wiedemann [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-1991-282X>),\nGraham M Thew [ctb] (ORCID: <https://orcid.org/0000-0003-2851-1315>),\nUrška Košir [ctb] (ORCID: <https://orcid.org/0000-0003-2132-4090>),\nAnke Ehlers [ths] (ORCID: <https://orcid.org/0000-0002-8742-0192>),\nMental Health Research UK [fnd]",
  "Maintainer": "Milan Wiedemann <milan.wiedemann@gmail.com>",
  "MD5sum": "9c9610e16551d16847ab532b3809a4e6",
  "_user": "milanwiedemann",
  "_type": "src",
  "_file": "lcsm_0.3.2.tar.gz",
  "_fileid": "221ff0d8cb396a2081b9f76bf3479cfb7d94012716fee4db5fc75f0b5f46ad98",
  "_filesize": 1338700,
  "_sha256": "221ff0d8cb396a2081b9f76bf3479cfb7d94012716fee4db5fc75f0b5f46ad98",
  "_created": "2026-05-11T10:24:11.000Z",
  "_published": "2026-05-26T16:38:09.829Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77369320210,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6916055391"
    },
    {
      "job": 77369320072,
      "time": 177,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6916061979"
    },
    {
      "job": 77369320183,
      "time": 119,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6916070763"
    },
    {
      "job": 77369319877,
      "time": 126,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6916058027"
    },
    {
      "job": 77369319477,
      "time": 272,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6916000445"
    },
    {
      "job": 77369319545,
      "time": 158,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159272787"
    },
    {
      "job": 77369320360,
      "time": 115,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6916040421"
    },
    {
      "job": 77369320225,
      "time": 111,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6916039206"
    },
    {
      "job": 77369320227,
      "time": 141,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6916049587"
    }
  ],
  "_buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/milanwiedemann/lcsm",
  "_commit": {
    "id": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
    "author": "Milan Wiedemann <milan.wiedemann@gmail.com>",
    "committer": "Milan Wiedemann <milan.wiedemann@gmail.com>",
    "message": "Update cran comments for resubmission\n",
    "time": 1677367225
  },
  "_maintainer": {
    "name": "Milan Wiedemann",
    "email": "milan.wiedemann@gmail.com",
    "login": "milanwiedemann",
    "mastodon": "@milanwiedemann@fosstodon.org",
    "orcid": "0000-0003-1991-282X",
    "uuid": 25428744
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "lavaan",
      "version": ">= 0.6.2",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 0.7.4",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 1.4.2",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 1.5",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.1.6",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 0.8.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 2.2.1",
      "role": "Imports"
    },
    {
      "package": "broom",
      "version": ">= 0.5.1",
      "role": "Imports"
    },
    {
      "package": "semPlot",
      "version": ">= 1.1",
      "role": "Imports"
    },
    {
      "package": "stats",
      "version": ">= 3.5.2",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "version": ">= 1.4.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 0.3.4",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "version": ">= 1.22",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "version": ">= 1.12",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "version": ">= 1.4.0",
      "role": "Suggests"
    }
  ],
  "_owner": "milanwiedemann",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 18,
  "_contributors": [
    {
      "user": "milanwiedemann",
      "count": 259,
      "uuid": 25428744
    }
  ],
  "_userbio": {
    "uuid": 25428744,
    "type": "user",
    "name": "Milan Wiedemann"
  },
  "_downloads": {
    "count": 312,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/lcsm"
  },
  "_devurl": "https://github.com/milanwiedemann/lcsm",
  "_pkgdown": "https://milanwiedemann.github.io/lcsm/",
  "_searchresults": 49,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/lcsm.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/milanwiedemann/lcsm",
  "_realowner": "milanwiedemann",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2020-06-05"
    },
    {
      "version": "0.1.2",
      "date": "2020-07-24"
    },
    {
      "version": "0.3.1",
      "date": "2023-02-01"
    },
    {
      "version": "0.3.2",
      "date": "2023-02-26"
    }
  ],
  "_exports": [
    "%>%",
    "extract_fit",
    "extract_param",
    "fit_bi_lcsm",
    "fit_uni_lcsm",
    "plot_lcsm",
    "plot_trajectories",
    "rename_lcsm_vars",
    "select_bi_cases",
    "select_uni_cases",
    "sim_bi_lcsm",
    "sim_uni_lcsm",
    "specify_bi_lcsm",
    "specify_uni_lcsm"
  ],
  "_datasets": [
    {
      "name": "data_bi_lcsm",
      "title": "Longitudinal dataset with repeated measures of two constructs",
      "object": "data_bi_lcsm",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "x1",
        "x2",
        "x3",
        "x4",
        "x5",
        "x6",
        "x7",
        "x8",
        "x9",
        "x10",
        "y1",
        "y2",
        "y3",
        "y4",
        "y5",
        "y6",
        "y7",
        "y8",
        "y9",
        "y10"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    },
    {
      "name": "data_uni_lcsm",
      "title": "Longitudinal dataset with repeated measures of one constructs",
      "object": "data_uni_lcsm",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "x1",
        "x2",
        "x3",
        "x4",
        "x5",
        "x6",
        "x7",
        "x8",
        "x9",
        "x10"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    },
    {
      "name": "lcsm_data",
      "title": "Longitudinal dataset with repeated measures of two constructs",
      "object": "lcsm_data",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "x1",
        "x2",
        "x3",
        "x4",
        "x5",
        "y1",
        "y2",
        "y3",
        "y4",
        "y5"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "data_bi_lcsm",
      "title": "Longitudinal dataset with repeated measures of two constructs",
      "topics": [
        "data_bi_lcsm"
      ]
    },
    {
      "page": "data_uni_lcsm",
      "title": "Longitudinal dataset with repeated measures of one constructs",
      "topics": [
        "data_uni_lcsm"
      ]
    },
    {
      "page": "extract_fit",
      "title": "Extract fit statistics of lavaan objects",
      "topics": [
        "extract_fit"
      ]
    },
    {
      "page": "extract_param",
      "title": "Extract labelled parameters of lavaan objects",
      "topics": [
        "extract_param"
      ]
    },
    {
      "page": "fit_bi_lcsm",
      "title": "Fit bivariate latent change score models",
      "topics": [
        "fit_bi_lcsm"
      ]
    },
    {
      "page": "fit_uni_lcsm",
      "title": "Fit univariate latent change score models",
      "topics": [
        "fit_uni_lcsm"
      ]
    },
    {
      "page": "lcsm_data",
      "title": "Longitudinal dataset with repeated measures of two constructs",
      "topics": [
        "lcsm_data"
      ]
    },
    {
      "page": "plot_lcsm",
      "title": "Plot simplified path diagram of univariate and bivariate latent change score models",
      "topics": [
        "plot_lcsm"
      ]
    },
    {
      "page": "plot_trajectories",
      "title": "Plot individual trajectories",
      "topics": [
        "plot_trajectories"
      ]
    },
    {
      "page": "rename_lcsm_vars",
      "title": "Rename variables for univariate and bivariate latent change score models",
      "topics": [
        "rename_lcsm_vars"
      ]
    },
    {
      "page": "select_bi_cases",
      "title": "Select cases based on minimum number of available session scores on two longitudinal measures",
      "topics": [
        "select_bi_cases"
      ]
    },
    {
      "page": "select_uni_cases",
      "title": "Select cases based on minimum number of available session scores on one longitudinal measure",
      "topics": [
        "select_uni_cases"
      ]
    },
    {
      "page": "sim_bi_lcsm",
      "title": "Simulate data from bivariate latent change score model parameter estimates",
      "topics": [
        "sim_bi_lcsm"
      ]
    },
    {
      "page": "sim_uni_lcsm",
      "title": "Simulate data from univariate latent change score model parameter estimates",
      "topics": [
        "sim_uni_lcsm"
      ]
    },
    {
      "page": "specify_bi_lcsm",
      "title": "Specify lavaan model for bivariate latent change score models",
      "topics": [
        "specify_bi_lcsm"
      ]
    },
    {
      "page": "specify_uni_lcsm",
      "title": "Specify lavaan model for univariate latent change score models",
      "topics": [
        "specify_uni_lcsm"
      ]
    }
  ],
  "_readme": "https://github.com/milanwiedemann/lcsm/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "arm",
    "backports",
    "base64enc",
    "BH",
    "boot",
    "broom",
    "bslib",
    "cachem",
    "carData",
    "checkmate",
    "cli",
    "cluster",
    "coda",
    "colorspace",
    "corpcor",
    "cpp11",
    "data.table",
    "digest",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fdrtool",
    "fontawesome",
    "foreign",
    "Formula",
    "fs",
    "generics",
    "ggplot2",
    "glasso",
    "glue",
    "GPArotation",
    "gridExtra",
    "gtable",
    "gtools",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "igraph",
    "isoband",
    "jpeg",
    "jquerylib",
    "jsonlite",
    "knitr",
    "kutils",
    "labeling",
    "lattice",
    "lavaan",
    "lifecycle",
    "lisrelToR",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mi",
    "mime",
    "minqa",
    "mnormt",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "OpenMx",
    "openxlsx",
    "pbapply",
    "pbivnorm",
    "pillar",
    "pkgconfig",
    "plyr",
    "png",
    "psych",
    "purrr",
    "qgraph",
    "quadprog",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "reformulas",
    "reshape2",
    "rlang",
    "rmarkdown",
    "rockchalk",
    "rpart",
    "rpf",
    "rstudioapi",
    "RUnit",
    "S7",
    "sass",
    "scales",
    "sem",
    "semPlot",
    "StanHeaders",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "XML",
    "xtable",
    "yaml",
    "zip"
  ],
  "_vignettes": [
    {
      "source": "v2-path-diagrams.Rmd",
      "filename": "v2-path-diagrams.html",
      "title": "Create path diagrams to visualise model specifications",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Plot simplified path diagrams of LCSMs",
        "Univariate LCSM",
        "Bivariate LCSM"
      ],
      "created": "2020-05-25 00:47:10",
      "modified": "2021-07-10 16:49:51",
      "commits": 5
    },
    {
      "source": "v1-lavaan-syntax.Rmd",
      "filename": "v1-lavaan-syntax.html",
      "title": "Generate lavaan syntax for latent change score models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Univariate LCSM syntax",
        "Add lavaan syntax",
        "Bivariate LCSM syntax",
        "True Score to Change Score",
        "Change Score to Change Score",
        "Add model specifications to lavaan code",
        "TODOs"
      ],
      "created": "2020-05-25 00:47:10",
      "modified": "2021-07-10 16:49:51",
      "commits": 5
    },
    {
      "source": "lcsm-parameters.Rmd",
      "filename": "lcsm-parameters.html",
      "title": "LCSM Parameters",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview of estimated LCSM parameters",
        "Univariate LCSM",
        "Bivariate LCSMs"
      ],
      "created": "2021-07-10 16:22:18",
      "modified": "2021-07-14 05:45:28",
      "commits": 2
    },
    {
      "source": "v3-extract-tutorial.Rmd",
      "filename": "v3-extract-tutorial.html",
      "title": "Parameter estimates and fit statistics of LCSMs",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Create univariate models",
        "Extract fit statistics",
        "Extract parameters",
        "TODOs"
      ],
      "created": "2020-06-03 15:56:45",
      "modified": "2021-07-10 16:49:51",
      "commits": 4
    },
    {
      "source": "v4-simulate-data.Rmd",
      "filename": "v4-simulate-data.html",
      "title": "Simulate data to explore the effect of different parameters",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2020-05-25 00:47:10",
      "modified": "2023-01-30 17:40:49",
      "commits": 4
    },
    {
      "source": "v0-longitudinal-plots.Rmd",
      "filename": "v0-longitudinal-plots.html",
      "title": "Visualise longitudinal data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Prepare data",
        "Violin plots",
        "Longitudinal plots",
        "Overlaid individual trajectories",
        "Separate individual trajectories",
        "References"
      ],
      "created": "2020-05-25 00:47:10",
      "modified": "2020-06-03 16:07:56",
      "commits": 2
    }
  ],
  "_score": 6.422589839851482,
  "_indexed": true,
  "_nocasepkg": "lcsm",
  "_universes": [
    "milanwiedemann"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.2",
      "date": "2026-05-11T10:26:44.000Z",
      "distro": "noble",
      "commit": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
      "fileid": "b0ff3f90e4ed21c148511887d27e637fa9ff9c66a4a9a4ee1e6c8fb56f077a0c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.2",
      "date": "2026-05-11T10:27:07.000Z",
      "distro": "noble",
      "commit": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
      "fileid": "9a6c396d5cae2d94bb105da6c017021cc2256f0151daa54e551aa1263a2fa9c2",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.2",
      "date": "2026-05-11T10:27:38.000Z",
      "commit": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
      "fileid": "b41ad03cb74c38554f419fc9f0b29bb5442adba3a8c7be200e6ac48df559e1ac",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.2",
      "date": "2026-05-11T10:26:57.000Z",
      "commit": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
      "fileid": "90117358cf7e61ea0b2d0fe2e993456c18bbb592bfe797c7eacfd395a174f670",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-05-11T10:25:52.000Z",
      "commit": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
      "fileid": "0d5f092a778c3470b94e378a820ac7cb30083f041164bcb94eca60a34f701691",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-05-11T10:25:56.000Z",
      "commit": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
      "fileid": "dc2c92d16baec797aab186c03388dcb02eac4129a2108842777d4b2b99a437ed",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-05-11T10:26:19.000Z",
      "commit": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
      "fileid": "3ba6ad4f5cb0f56ed1e86a3fa1606fb9200f926d26b16688360dc92031d61e08",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.2",
      "date": "2026-05-22T11:21:02.000Z",
      "commit": "501d0d242fb54d3ee9b83736972a2dff8164fd65",
      "fileid": "4f97ca622e9e8217dad1b753fbfce7c89019f58dba971d7caf071a3255610eea",
      "status": "success",
      "buildurl": "https://github.com/r-universe/milanwiedemann/actions/runs/25664270414"
    }
  ]
}