No articles match
Real-time CFR over time13 days ago
Simulation setup | Fitting a constant and a random-walk model | Weekly estimates from per-case draws | Estimates one week after the last onset | Estimates six weeks after the last onset | Other settings | Interpreting the two estimates
Real-time CFR with cfrnow14 days ago
The problem | A line list | Preparing the data at a cut-off | Fitting | Covariates and time-varying CFR | Delay family and fixing the delay | Recovery timing | Caveats
Stratified and partially-pooled CFR20 days ago
Why stratify, and why pool | A six-site line list | Three fits: complete, no, and partial pooling | Reading the estimates | Shrinkage | Varying the delay by group | Check the fit
Understanding delay distributions in EpiNow21 months ago
What delay distributions represent | Specifying delays | Why naive discretisation is biased | How primarycensored corrects this | Composing multiple delays | Truncation | Fitting delay distributions from data | References
Examples: estimate_infections()2 months ago
Set up | Data | Parameters | Delays: incubation period and reporting delay | Generation time | Initial reproduction number | Running the model | Default options | Reducing the accuracy of the approximate Gaussian Process | Adjusting for future susceptible depletion | Adjusting for truncation of the most recent data | Projecting the reproduction number with the Gaussian Process | Fixed reproduction number | Breakpoints | Weekly random walk | No delays | Non-parametric infection model
Getting started with distspec2 months ago
Quick start | Defining a distribution | Uncertain parameters | Discretising | Combining distributions | Plotting | Sampling | Uncertain nonparametric distributions
Introduction to socialmixr2 months ago
Setup | The pipeline workflow | Assigning age groups | Surveys | Bootstrapping | Demography | Symmetric contact matrices | Contact rates per capita | Splitting contact matrices | Filtering | Participant weights | Temporal aspects and demography | User-defined participant weights | Weight threshold | Numerical example | Get survey data | Weight by day of week | Weight by age | Apply threshold | Plotting | Using ggplot2 | Using R base | References
Introduction to contactsurveys2 months ago
Usage | Using contact matrices with socialmixr | References
Forecasting multiple data streams2 months ago
Background | Setup | Data | Estimating infections | Estimating secondary scaling and delay | Forecasting secondary outcomes
Fitting delay distributions with estimate_dist()2 months ago
Introduction | Set up | Simulating censored delay data | Setting priors | Fitting the model | Checking parameter recovery
Workflow for Rt estimation and forecasting3 months ago
Data | Set up | Parameters | Delay distributions | Generation intervals | Reporting delays | Truncation | Completeness of reporting | Initial reproduction number | Weighing delay priors | Estimation and forecasting | Forecasting secondary outcomes | Interpretation | Evaluating forecasts with scoringutils
Getting started with EpiNow23 months ago
Quick start | Reporting delays, incubation period and generation time | epinow() | regional_epinow()
Using epinow() for running in production mode3 months ago
Running the model on a single region | Running the model simultaneously on multiple regions
Gaussian Process implementation details3 months ago
Overview | Definition | Matérn 3/2 covariance kernel (the default) | Squared exponential kernel | Ornstein-Uhlenbeck (Matérn 1/2) kernel | Matérn 5/2 covariance kernel | Hilbert space approximation | Modelling the reproduction number | References
Temporal aggregation guide3 months ago
Packages | Data | Approach 1: Weekly timestep | Approach 2: Daily process, weekly reporting (fitted day-of-week) | Approach 3: Daily process, weekly reporting (structural) | Approach 4: Daily timestep | Comparison | Weekly scale | Daily scale | Runtime | Choosing an approach
Getting Started with Epinowcast: Nowcasting3 months ago
Quick start | Package | Data | Filtering | Preprocessing | Visualising the data | Choosing a nowcast horizon | Nowcast target | The default model | Posterior predictions | Alternative models | Process model | Reference model: reporting delays | Fitting the alternative models | Results | Diagnostics | Comparing all models | Using package functions rather than S3 methods | Next steps
Comparing Inference Methods3 months ago
Overview | Setup | Model specifications | Fitting | NUTS with prior initialisation (default) | NUTS with pathfinder initialisation | Pathfinder (approximate inference) | Runtime comparison | Diagnostics | NUTS diagnostics | Pathfinder diagnostics | Nowcast comparison | Posterior parameter comparison | Updating with posterior-as-prior | Summary
Estimating the effective reproduction number in real-time for a single timeseries with reporting delays3 months ago
Use case | What we have | What do we do | Getting setup | Introducing the data: COVID-19 hospitalisations in Germany | Overview | Data transformations | Filtering the data | Visualising the data | Model | Expected hospitalisations | Expected infections | Instantaneous reproduction number | Latent infections | Latent reporting delay and ascertainment | Specifying the model using epinowcast::enw_expectation() | Delay distribution | Defining the delay distribution | Specifying the model using epinowcast::enw_reference() | Observation model and nowcast | Defining the observation model | Specifying the model using epinowcast::enw_obs() | Fitting the model to COVID-19 hospitalisations in Germany | Preprocess the data | Fitting the epinowcast model | Specifying the fitting options | Compiling the model | Fitting the model | Visualising the Nowcast | Plotting the nowcast based on real-time data | Plotting the nowcast based on retrospective data | Posterior predictions for cases by date of positive test and report | Real-time and retrospective estimates of the effective reproduction number | Estimates of the delay from testing positive to hospitalisation both in real-time and retrospectively | Estimates of the number of expected hospitalisations both in real-time and retrospectively | Wrapping up | Summary | Strengths | Limitations | Alternative packages | References
Model definition: estimate_truncation()4 months ago
Model | Priors
Prior choice and specification guide4 months ago
Introduction | Set up | Overview of all priors | estimate_infections() priors | estimate_secondary() priors | estimate_truncation() priors | Prior impacts and choice guidance | Reproduction number | Gaussian Process length scale | Gaussian Process magnitude | Random walk for $R_t$ (alternative to GP) | Observation model: overdispersion | Observation model: scaling | For estimate_infections(): | For estimate_secondary(): | Generation time distribution | Delays (incubation and reporting) | Truncation | Model choice in estimate_infections() | Priors for estimate_secondary() | Delay between primary and secondary | Priors for estimate_truncation() | Truncation distribution parameters | Practical workflow for prior specification | Step 1: Start with defaults | Step 2: Identify candidates for modification | Step 3: Modify one prior at a time | Step 4: Check prior predictive distributions | Step 5: Check model convergence | Common pitfalls and recommendations | Pitfall 1: Over-informative priors without justification | Pitfall 2: Ignoring generation time and delays | Pitfall 3: Estimating too many uncertain parameters | Pitfall 4: Wrong time scale for length scale | Pitfall 5: Forgetting the max parameter | References and further reading | Key papers
{ringbp} Model Description4 months ago
Model Overview | Disease natural history scenarios | Transmission scenarios with interventions | Presymptomatic transmission scenarios with interventions | Transmission in isolation | Model parameters | Further information
Getting started with {ringbp}4 months ago
Introduction | Model overview | Specifying model components | Offspring distributions | Delay distributions | Event probabilities | Intervention options | Simulation controls | Running outbreak simulations | Visualising results | Summarising outcomes | Simplified COVID-19 contact tracing effectiveness analysis | Define epidemiological parameters | Run the simulation | {ringbp} Use Cases | References
ARIMA latent residuals: maths, priors, and usage4 months ago
Introduction | What an ARIMA term does | Using ARIMA terms in a formula | The kernel decomposition | Centring the integrated residual | Stationarity via partial autocorrelations | Group structure: dependent vs independent | Special cases | Priors | Where you can use it | Limitations | References
Latent process and periodic options for the growth-rate model4 months ago
Setup | Random walk on weeks | Integrated AR | Stationary AR | Gaussian process on weeks | Independent per-(week, group) effects | Day-of-week effects | Combining latent and periodic terms | Moving-average components | Fit diagnostics | When to reach for which
Model definition and implementation4 months ago
Introduction | Decomposition into expected final notifications and report delay components | Expected final notifications | Default model | Generalised model | Instantaneous reproduction number/growth rate | Latent infections/notifications | Latent reporting delay and ascertainment | Delay distribution | Parametric baseline hazard | Non-parametric reference date effect $\delta_{g,t,d}$ and report date effect $\epsilon_{g,t,d}$ | Centring | Observation model and nowcast | Accounting for reported cases with a missing reference date | Implementation | Summary of module-parameter mappings | References
Estimating reporting delays with the full and delay-only models4 months ago
Use case | Other tools for delay estimation | Two ways to estimate a delay | Getting set up | Simulating a reporting triangle | Fitting the full model | Fitting the delay-only model | Comparing the recovered delay parameters | Comparing the recovered delay distribution | Recovering the delay from data with missing cells | Using the delay-only estimate to set priors | When to use the delay-only model | References
Model Features Summary4 months ago
Overview | Core Capabilities | Different Timesteps and Timespans | Stratified and Multi-Group Nowcasting | Delay Modelling Approaches | Report Date Effects and Structural Reporting | Latent Process Models | Hierarchical Structure | Prior Specification | Missing Data Handling | Model Evaluation | Visualisation | Computational Options | Data Handling | Current Limitations | Further Reading
Discretised distributions4 months ago
Available distributions | Discretisation and adjustment for maximum delay | Double interval censoring with primarycensored
Model definition: estimate_infections()4 months ago
Infection model | Renewal equation model | Initialisation | Infections | Time-varying reproduction number | Beyond the end of the observation period | Adjusting for susceptible population depletion | Non-Mechanistic infection model | Delays and scaling | Observation model | Truncation | References
Gaussian process latent terms: maths, priors, and usage4 months ago
Introduction | What a Gaussian process term does | Using Gaussian process terms in a formula | The kernel and Hilbert-space decomposition | Kernels and special cases | Group structure: dependent vs independent | Differencing order | Priors | Where you can use it | Limitations | References
Scenario parameter sweep5 months ago
Set up scenario parameter space | Parameter sweep across scenarios | Storing simulations with scenarios | Running scenarios in parallel
Model definition: estimate_dist()5 months ago
Overview | Data and notation | Likelihood | Continuous formulation | Truncation | Discrete observation likelihood | Untruncated approximation | Primary event distribution | Delay families and parameterisations | Priors | References
Model features5 months ago
Component overview | Estimation models | Infection model | Secondary model | Truncation / nowcasting | Delay distribution fitting | Model configuration | Reproduction number | Gaussian process | Delay distributions | Observation model | Options summary | Forward simulation and forecasting | Simulation | Forecasting | Supporting utilities | Data preprocessing | Workflow wrappers | Stan backend
Model overview5 months ago
Introduction | Architecture | Relationship between models | Where to look next
Case studies and use in the literature5 months ago
Case studies | Public health surveillance | Literature | By package authors | By others
Visualising Preprocessed Data5 months ago
Setup | Data | Preprocessing | Latest observations | Cumulative reporting delay | Reporting delay heatmap | Reporting delay quantiles | Notifications by delay group | Using the individual plot functions | Helper functions
Resources to help with model fitting using Stan6 months ago
Epinowcast and Stan | Ensuring you have the proper toolchain | Now install CmdStanR and CmdStan | Epinowcast modelling | Installation | Running your first model | Setting enw_fit_opts | Investigating the quality of the model fit | Sampler settings | chains | threads_per_chain | iter_warmup and iter_sampling | max_treedepth | adapt_delta | Some decent defaults | Model settings | Setting priors | Exploring your data | Posterior predictions | Approaches to solve common problems | My model takes too long to run | Divergent transitions | My $\hat{R}$s are high and my esss are low | The posterior estimates are very wide | Other resources | Technical issues | Learning more about Stan and Bayesian inference
Scoring rules in scoringutils7 months ago
Introduction | Metrics for point forecasts | A note of caution | Absolute error | Squared error | Absolute percentage error | Binary forecasts | Brier score | Logarithmic score | Sample-based forecasts | CRPS | Overprediction, underprediction and dispersion | Log score | Dawid-Sebastiani score | Dispersion - Median Absolute Deviation (MAD) | Bias | Absolute error of the median | Squared error of the mean | Quantile-based forecasts | Weighted interval score (WIS) | Interval coverage | Interval coverage deviation | Quantile score | Additional metrics | Quantile coverage
Scoring multivariate forecasts7 months ago
Univariate forecasts | Multivariate forecasts | Multivariate point forecasts
Hierarchical nowcasting of age stratified COVID-19 hospitalisations in Germany8 months ago
Packages | Data | Data preprocessing | Models | Shared reporting delay distribution | Using the inflated posterior as a prior | Reference day of the week effect | Posterior predictions | Reporting day of the week effect | Age group variation | Variation based on reference date | Variation based on reference date stratified by age | Independent models for each age group. | Alternative models | Evaluation | Summary
Case studies8 months ago
Introduction to rbi8 months ago
Installation | Loading the package | Getting started | The bi_model class | Generating a dataset | The libbi class | Fitting a model to data using PMCMC | Analysing an MCMC run | Predictions | Sample observations | Filtering | Plotting | Saving and loading libbi objects | Creating libbi objects from previous runs | Debugging | Related packages | References
Deprecated Visualisations8 months ago
Functions plot_predictions() and make_na() | Function plot_interval_ranges() (formerly plot_ranges()) | Function plot_score_table()
lopensemble1 years ago
Introduction | Usage | Load example data and split into train and test data | Get weights and create mixture | Score predictions | Methods | CRPS for one model and one single observation | CRPS for a mixture of all models and one single observation | Obtaining the weights that minimize CRPS | References
Model definition: estimate_secondary()2 years ago
Getting started with qrensemble2 years ago
Definitions | Prerequisites | Example
Deprecated functions2 years ago
merge_pred_and_obs()
Introduction to rbi.helpers3 years ago
Installation | Loading the package | Loading the model and generating a synthetic dataset | Adapt the number of particles | Adapt the proposal distribution | Compute DIC | Convert between LibBi times and actual times or dates | Create inference chains
Collection of SIR models for LibBi3 years ago
Deterministic SIR model, observations of prevalence | Deterministic SIR model, observations of incidence | Stochastic SIR model (SDE), observations of incidence | Stochastic SIR model (jump), observations of incidence | Example observation data frame
Getting started4 years ago
Introduction | Forecast Rts, score and plot | Forecast cases, score and plot | Use iterative fitting to explore a forecast | Evaluate a model | Wrapper functions | Supporting generic modelling packages
Getting started with quantgen4 years ago
Installing | Quantile lasso | Multiple quantiles | Tau x lambda grid | Other options
Cross-validation 5 years ago
Noncrossing constraints 5 years ago
Quantile extrapolation 5 years ago
Quantile stacking 5 years ago
Mathematical details 5 years ago