Fit and simulate models |
|
|---|---|
Run the serosolver model |
|
Simulate full data set |
|
Simulate attack rates |
|
Simulate infection histories |
|
Simulate the antibody model |
|
Prepare and check inputs |
|
Checks the entries of data used in serosolver |
|
Checks the entries of demographics data frame used for parameter stratification |
|
Check infection history matrix |
|
Check and prepare a model parameter table |
|
Checks the attack_rates supplied in simulate_data |
|
Generate antigenic map, flexible |
|
Load serological antibody data from CSV file |
|
Load in antigenic map file from CSV |
|
Create age mask |
|
Create sample mask |
|
Model options and priors |
|
Generate starting antibody levels |
|
Add measurement offset values to par_tab |
|
Extend parameter table for multiple biomarker_groups |
|
Generate starting parameter table |
|
Describe infection history priors |
|
Find Beta distribution parameters with mode |
|
Find beta parameters with maximum variance |
|
Find beta parameters for mean and variance |
|
MCMC output and summaries |
|
Load a starting parameter table from file |
|
Load MCMC chains from CSV files for antibody kinetics parameters (theta) |
|
Load MCMC chains from CSV files for infection histories |
|
Load MCMC chains for the antibody kinetics parameters and infection histories from CSV outputs |
|
Generate antibody level credible intervals |
|
Get posterior information for estimated infection histories |
|
Best pars |
|
Best infection history and theta parameters |
|
Index pars |
|
Pad infection history chain |
|
Get number alive |
|
Get number alive by population group |
|
Get total number of infections |
|
Formatted quantiles |
|
Identify runs of infections from posterior |
|
Summarize runs of infections from posterior |
|
Plotting and diagnostics |
|
Plot joint posterior densities for two parameters |
|
Plot raw data |
|
Antibody dependent boosting relationship |
|
Plot the antibody model |
|
Plots model predicted titers against observations |
|
Plot historical attack rates with pointrange plots |
|
Plot cumulative and per time posterior infection probability densities |
|
Plots estimated antibody kinetics model |
|
Plot point range number infections per individual |
|
Plot MCMC trace for infections per individual |
|
Plot MCMC trace for infections per year |
|
Plot inferred posteriors infection histories |
|
Plot MCMC diagnostics |
|
Plots infection histories and antibody model |
|
Plot posterior parameter traces and densities |
|
Plot time between serum samples |
|
Total number of infections |
|
Example data |
|
Example antibody data |
|
Example longitudinal antibody data |
|
Example antibody data with multiple biomarker groups |
|
Example antigenic map |
|
Example MCMC chain for infection histories |
|
Example infection history matrix |
|
Example parameter table |
|
Example MCMC chain for kinetics parameters |
|