Skip to content

dsem

3.0.0

Dynamic Structural Equation Models

1packages depend
8.4Kdownloads / year
50.5%test coverage
13/13checks pass

Overview

About
Maintained by James ThorsonFirst published 2023-12-0815 releasesCRAN page ↗GitHub ↗

Applies dynamic structural equation models to time-series data with generic and simplified specification for simultaneous and lagged effects. Methods are described in Thorson et al. (2024) "Dynamic structural equation models synthesize ecosystem dynamics constrained by ecological mechanisms."

Install

Health

CRAN checks
13OK
Slowest check: 14.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.20
50.5%
Coverage · measured lines
100%
Documentation · exports
11
Dependencies · direct
Check history
  • OK2026-07-22
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-02
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 544 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
97%
Return-value docs
78%
References docs
20%

Downloads

8.4K
CRAN downloads in the past year
Rank #4,007 · ~23/day · ~698/mo
Daily download trend is not available in this view yet.
61030 days
2.4K90 days
8.4K1 year
Compare downloads with other packages →
Also on496 r2u38 autocran

Repository

Repository
22Stars
6Forks
3Open issues
1Open PRs
14Releases
74Commits
3Contributors
74 commits · Last activity 2026-07-10 · +10% stars, 30d

Stars over time

2025-02-18 · 112026-07-14 · 22

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/james-thorson-noaa/dsem on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.0.0
Imports (11)
TMBMatrixigraphutilsRTMBggraphggplot2gridmethodsstatscheckmate
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Code Composition
R 5,536 (52%)Vignettes 2,388 (22%)Rd 1,893 (18%)C++ 648 (6%)Other 230 (2%)
Code characteristics
Object systems
S38
Cyclomatic complexity
4.0 median / 48 max
Test cases
16 / 0.20 per code line

Test coverage

Line coverage

50%

Expression

49.1%

Tests / Examples

50.5% / 44% ex

Functions

55 23 exported

Complexity

7.1 avg / 48 max

Call network

55 nodes / 39 edges

Loading call graph…

Lowest coverage

55 functions
FunctionCycloCoverage
TMBAIC exp30%
cAIC exp40%
lognormal exp30%
loo_residuals exp110%
make_dfa exp60%
make_msv exp70%

Datasets

Bundled datasets · 6
NameClassRows × ColsAlso ships in
bering_seadata.frame61 × 8
hare_lynxdata.frame21 × 3
isle_royaledata.frame61 × 3
lake_washingtondata.frame396 × 6
paramesium_didiniumdata.frame71 × 3
pdo_departure_baydata.frame104 × 3

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (2)
Contributor · added in 1.4.1
Contributor · added in 1.5.0
Other (1)
Contractor · added in 1.6.0
Package Timeline

15 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 3.0.0Latest
    2026-06-16 · current release · diff ↗
  • 2.0.1
    2026-05-14 · diff ↗
  • 2.0.0
    2026-05-12 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.7.0
    2025-09-16 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.6.0
    2025-03-22 · diff ↗
  • 1.5.0
    2025-02-13 · diff ↗
  • 1.4.1
    2025-02-02 · diff ↗
  • 1.4.0
    2025-01-13 · diff ↗
  • 1.3.0
    2024-07-22 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.1
    2024-04-03 · diff ↗
  • 1.2.0
    2024-03-31 · diff ↗
  • 1.1.0
    2024-02-17 · diff ↗
  • 1.0.2
    2024-02-02 · diff ↗
Show 3 earlier events
  • 1.0.1
    2024-01-18 · diff ↗
  • 1.0.0
    2023-12-08
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-12-08
Total releases
15 / 3 yrs
License
GPL-3 OSI
Minimum R
≥ 4.0.0
Bundled data
17 KB / 7 files
Download size
1.5 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →