PanelPOMP Data Analysis Tutorial — Supplement 2 for Mechanistic Models for Panel Data
Bo Yang, Jesse Wheeler, Meghan A. Duffy, Aaron A. King, Edward L. Ionides
| Preprint: arXiv:2506.04508 | Archive: |
This tutorial provides step-by-step guidance for implementing Panel Iterated Filtering (PIF) methods using the panelPomp R package. It accompanies the main analysis in Mechanistic models for panel data: Analysis of ecological experiments with four interacting species.
The tutorial walks through two complete worked examples — from raw data and model specification through parameter estimation, diagnostics, and profile likelihood confidence intervals — using the Daphnia mesocosm experimental system.
The tutorial (tut.html) covers two models of increasing complexity:
A simpler entry point with 3 latent states (Susceptible, Juvenile, Food):
Csnippet), initial states, measurement modelThe flagship model with 8 latent states:
Before running the tutorial, install the required R packages:
install.packages(c("pomp", "panelPomp", "tidyverse"))
The tutorial includes computationally intensive examples controlled by run_level:
| Level | Purpose | Approximate Resources |
|---|---|---|
| 1 | Quick debugging | Minutes, any machine |
| 2 | Local computation | ~1 hour on 36 cores, ~50 GB memory |
| 3 | Full estimation | ~40 hours on 36 cores, ~50 GB memory |
The rendered tutorial (tut.html) includes all pre-computed outputs so you can read through the results without running the code.
| File | Description |
|---|---|
tut.qmd |
Quarto source for the tutorial |
tut.html |
Rendered tutorial (pre-computed results) |
data/ |
Data files used in the tutorial |
bib-daphnia.bib |
Bibliography |
Makefile |
Build automation |
Render the tutorial locally:
make
or:
Rscript render_tut.R
| Resource | Link |
|---|---|
| Main analysis repository | github.com/Megumi-ybb/Daphnia-ms |
| Main analysis website | megumi-ybb.github.io/Daphnia-ms |
| panelPomp R package | CRAN |
| pomp R package | kingaa.github.io/pomp |
| Zenodo archive | doi:10.5281/zenodo.15595669 |
Yang, B., Wheeler, J., Duffy, M. A., King, A. A., & Ionides, E. L. Mechanistic models for panel data: Analysis of ecological experiments with four interacting species. arXiv:2506.04508