Skip to content

trajmsm

Marginal Structural Models with Latent Class Growth Analysis of Treatment Trajectories

v0.1.5 · Nov 11, 2025 · GPL (>= 3)

Description

Implements marginal structural models combined with a latent class growth analysis framework for assessing the causal effect of treatment trajectories. Based on the approach described in "Marginal Structural Models with Latent Class Growth Analysis of Treatment Trajectories" Diop, A., Sirois, C., Guertin, J.R., Schnitzer, M.E., Candas, B., Cossette, B., Poirier, P., Brophy, J., Mésidor, M., Blais, C. and Hamel, D., (2023) <doi:10.1177/09622802231202384>.

Downloads

CRAN

250

Last 30 days

19957th

578

Last 90 days

2.3K

Last year

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

r2u CRAN

0

Last 30 days

24

Last 90 days

109

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

11

Last 7 days

16

Last 30 days

3

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 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-macos-x86_64 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-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

for code/documentation mismatches

Warning in file(open = "w+") :
  cannot open file '/tmp/RtmpqBR51q/Rf1f67af75c73872': No space left on device
Error in file(open = "w+") : cannot open the connection
Calls: <Anonymous> -> .load_package_quietly -> .try_quietly -> file
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code intelligence has not been computed for this package yet.

Compare versions

Code

Structure

Lines of code

2,935

Files

36

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,953 (66.5%)Docs 982 (33.5%)

API

Exported functions

14

Internal functions

4

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

76.9%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2024-02-14

Latest release

2025-11-11

Avg cadence

148 days

Cold removal rate

Dep drift

2

LOC over versions

v0.1.0: 2,857 LOCv0.1.1: 2,909 LOCv0.1.2: 2,927 LOCv0.1.3: 2,929 LOCv0.1.4: 2,936 LOCv0.1.5: 2,935 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies e1071 flexmix ggplot2 survival sandwich trajmsm

Version History

7 tracked
new 0.1.5 Mar 10, 2026
updated 0.1.5 ← 0.1.4 diff Nov 10, 2025
updated 0.1.4 ← 0.1.3 diff Jun 15, 2025
updated 0.1.3 ← 0.1.2 diff Oct 4, 2024
updated 0.1.2 ← 0.1.1 diff Sep 16, 2024
updated 0.1.1 ← 0.1.0 diff Sep 7, 2024
new 0.1.0 Feb 13, 2024