DSEM Confirmatory Estimation

Using a dynamic structural equation model to estimate effect sizes for the candidate recruitment DAGs and rank them by AIC.

A dynamic structural equation model (DSEM) is a confirmatory complement to the PCMCI+ screening. Where PCMCI+ discovers and ranks individual candidate links under conditional-independence tests, DSEM takes a specified directed graph and estimates the standardized strength of every path simultaneously, then lets competing graphs be compared by information criteria (Thorson et al. 2024). This is the same approach Ma et al. used to disentangle the multi-causal recruitment dynamics of Northeast Arctic cod, the Barents Sea analogue of EBS pollock (Ma et al. 2026).

Role In This Project

The DAGs on the DAGs page define the scientific alternatives. PCMCI+ asks which links are supported by the data. DSEM asks two further questions:

  • How large is each effect, controlling for the others? All paths are estimated jointly on standardized series, so the slopes are comparable effect sizes rather than pairwise correlations.
  • Which whole hypothesis fits best? Each DAG (A bottom-up, B top-down, C transport, D switching) is fit as a single model and the four are ranked by AIC. This is the confirmatory analogue of the model-selection step in Ma et al. (2026).

The two methods share one input — data/cohort_table.csv — and one preprocessing convention, so their results are directly cross-readable.

Why DSEM Rather Than A Plain SEM

The EBS early-survival series are short and gappy, and the candidate drivers are collinear (temperature, cold pool, and ice timing co-vary). DSEM is built for exactly this setting (Thorson et al. 2024):

  • internal missing values are handled as a state-space process rather than by deleting cohorts,
  • simultaneous and lagged paths can coexist, which matters for the prior-cohort link in DAG D,
  • shared variation among collinear drivers is distributed across paths, so each coefficient reflects the additional explanatory power beyond the others,
  • standardized slopes make the four hypotheses comparable on one scale.

Lag Convention

Because the cohort table already aligns every variable to the year class (*_t for the age-0 year, *_t1 for age 1, *_t3 for age-3 recruitment), the structural paths are written at lag 0 in the cohort frame. The genuinely dynamic element is reserved for DAG D, where the previous year class helps set the predator field — a real lag-1 link in cohort time. A calendar-year alternative, in which the cohort timing is encoded by DSEM lag arguments instead of in the column names, is the closer mirror of Ma et al. (2026) and is noted in the analysis script.

The Four Hypotheses As DSEM Specifications

Each DAG becomes a short path specification (from -> to, lag, name). The full, runnable definitions are in analysis/dsem_fit.R; the structure is:

DAG Backbone of estimated paths
A. Bottom-up ice / wind / SST \(\rightarrow\) copepod-euphausiid \(\rightarrow\) age-0 energy \(\rightarrow\) recruitment; SSB \(\rightarrow\) recruitment
B. Top-down adult pollock, arrowtooth, cold pool, SST \(\rightarrow\) juvenile-predator overlap \(\rightarrow\) recruitment; SSB \(\rightarrow\) recruitment
C. Transport SST / wind \(\rightarrow\) spawning location and transport \(\rightarrow\) prey match and age-0 abundance \(\rightarrow\) recruitment
D. Switching bottom-up chain to age-1, top-down overlap to recruitment, plus a prior-cohort (lag-1) carryover; state-dependence added as an interaction or regime split

DAG A treats age-0 total energy as the central mediator, consistent with the strong condition–survival evidence for EBS pollock (Heintz et al. 2013; Moss et al. 2009; Siddon et al. 2013; Sigler et al. 2016). DAG B encodes the overlap-driven predation filter (Mueter et al. 2006; Spencer et al. 2016). DAG D follows the oscillating-control reading in which climate state switches which filter dominates (Mueter et al. 2006, 2011; Sigler et al. 2016).

Minimal R Workflow

library(dsem)
library(dplyr)

cohort <- readr::read_csv("data/cohort_table.csv", show_col_types = FALSE)

# standardize; keep NAs (dsem treats them as states)
z     <- function(x) as.numeric(scale(x))
nodes <- setdiff(names(cohort), "year")
tsdat <- ts(as.data.frame(lapply(cohort[nodes], z)), start = min(cohort$year))

dag_B <- "
  SSB                          -> age3_recruitment_t3,         0, ssb_R
  adult_pollock_biomass_t1     -> juvenile_predator_overlap_t1, 0, adult_ov
  arrowtooth_biomass_t1        -> juvenile_predator_overlap_t1, 0, atf_ov
  cold_pool_t1                 -> juvenile_predator_overlap_t1, 0, cp_ov
  late_summer_SST_t            -> juvenile_predator_overlap_t1, 0, sst_ov
  juvenile_predator_overlap_t1 -> age3_recruitment_t3,          0, ov_R
"

fit <- dsem(sem = dag_B, tsdata = tsdat, estimate_delta0 = TRUE,
            family = rep("normal", ncol(tsdat)))
summary(fit)   # standardized path coefficients
AIC(fit)       # for ranking against DAGs A, C, D

The four DAGs are fit on the same tsdat, so the AIC differences reflect structure rather than data coverage. The DAG with the lowest AIC is the best-supported whole hypothesis; its summary gives the signed, standardized effect of each path.

Sensitivity Analyses

Run the winning DAG through the four robustness checks used by Ma et al. (2026), on the same cohort table:

Check Question Output
Causal-map stability Do paths persist across rolling windows? retention frequency per path
Data uncertainty Are slopes robust to input CI? bootstrap slope distributions and p
Data richness Do conclusions need long series? slope vs. start year
Nonstationarity Do slopes change sign over time? rolling-window slopes

The nonstationarity check is the highest-value one for EBS pollock: it tests directly whether an environment–recruitment slope has reversed, the pattern Ma et al. found for cod and the concern behind projected pollock declines under warming (Mueter et al. 2011; Spencer et al. 2016). A reversal here would also be evidence for DAG D over a single stationary coefficient.

Interpreting Output

Output item Interpretation
path slope standardized effect of source on target, controlling for other paths
slope sign direction of the hypothesized mechanism
AIC / \(\Delta\)AIC relative support for the whole DAG against the other hypotheses
rolling slope nonstationarity; sign change supports switching control

As with PCMCI+, causal language stays conditional: DSEM estimates effect sizes under an assumed graph. Its contribution is to quantify and rank the hypotheses the DAGs and PCMCI+ put forward, not to prove a mechanism on its own.

Limitations

DSEM shares the short-series and nonstationarity vulnerabilities of any method applied to these data, and adds the assumption that relationships are linear. Gadid temperature responses are often dome-shaped, so a linear SST term cannot represent an optimum; Ma et al. note the same limitation and that a quadratic term changes their projections (Ma et al. 2026). The cohort-aligned, basin-scale form also collapses the spatial overlap mechanisms that DAGs B and C are really about — the strongest extension would supply VAST-based overlap fields rather than scalar indices.

Deliverables To Add To The Repository

File Purpose
analysis/build_cohort_table.R Assemble data/cohort_table.csv from the assessment, coldpool, and ESP indicators
analysis/dsem_fit.R Fit DAGs A–D, rank by AIC, run sensitivity analyses
outputs/dsem_paths.csv Standardized path coefficients with SE and p for the best DAG
outputs/dsem_aic.csv AIC and \(\Delta\)AIC for the four hypotheses

References

Heintz, Ron A., Elizabeth C. Siddon, Edward V. Farley, and Jeffrey M. Napp. 2013. “Correlation Between Recruitment and Fall Condition of Age-0 Pollock (Theragra chalcogramma) from the Eastern Bering Sea Under Varying Climate Conditions.” Deep-Sea Research Part II: Topical Studies in Oceanography 94: 150–56. https://doi.org/10.1016/j.dsr2.2013.04.006.
Ma, Shuyang, Bjarte Bogstad, Padmini Dalpadado, et al. 2026. “Leveraging the Highly Data-Rich Northeast Arctic Cod (Gadus Morhua, Gadidae) to Identify Key Biophysical Factors Behind Recruitment Success.” Fish and Fisheries 27 (6): 1006–27. https://doi.org/10.1111/faf.70098.
Moss, Jamal H., Edward V. Farley, Angela M. Feldmann, and James N. Ianelli. 2009. “Spatial Distribution, Energetic Status, and Food Habits of Eastern Bering Sea Age-0 Walleye Pollock.” Transactions of the American Fisheries Society 138 (3): 497–505. https://doi.org/10.1577/T08-126.1.
Mueter, Franz J., Nicholas A. Bond, James N. Ianelli, and Anne B. Hollowed. 2011. “Expected Declines in Recruitment of Walleye Pollock (Theragra chalcogramma) in the Eastern Bering Sea Under Future Climate Change.” ICES Journal of Marine Science, ahead of print. https://doi.org/10.1093/icesjms/fsr022.
Mueter, Franz J., Carol Ladd, Michael C. Palmer, and Brenda L. Norcross. 2006. “Bottom-up and Top-down Controls of Walleye Pollock (Theragra chalcogramma) on the Eastern Bering Sea Shelf.” Progress in Oceanography 68 (2–4): 152–83. https://doi.org/10.1016/j.pocean.2006.02.012.
Siddon, Elizabeth C., Ron A. Heintz, and Franz J. Mueter. 2013. “Conceptual Model of Energy Allocation in Walleye Pollock (Theragra chalcogramma) from Age-0 to Age-1 in the Southeastern Bering Sea.” Deep-Sea Research Part II: Topical Studies in Oceanography 94: 140–49. https://doi.org/10.1016/j.dsr2.2012.12.007.
Sigler, Michael F., Jeffrey M. Napp, Phyllis J. Stabeno, Ronald A. Heintz, Michael W. Lomas, and George L. Hunt. 2016. “Variation in Annual Production of Copepods, Euphausiids, and Juvenile Walleye Pollock in the Southeastern Bering Sea.” Deep-Sea Research Part II: Topical Studies in Oceanography 134: 223–34. https://doi.org/10.1016/j.dsr2.2016.01.003.
Spencer, Paul D., Kirstin K. Holsman, Stephani Zador, et al. 2016. “Modelling Spatially Dependent Predation Mortality of Eastern Bering Sea Walleye Pollock, and Its Implications for Stock Dynamics Under Future Climate Scenarios.” ICES Journal of Marine Science 73 (5): 1330–42. https://doi.org/10.1093/icesjms/fsw040.
Thorson, James T., Aaron G. Andrews, Timothy E. Essington, and Scott I. Large. 2024. “Dynamic Structural Equation Models Synthesize Ecosystem Dynamics Constrained by Ecological Mechanisms.” Methods in Ecology and Evolution 15 (4): 744–55. https://doi.org/10.1111/2041-210X.14289.