All functions |
|
---|---|
McMasterPandemic |
|
Add Variable by Convolution |
|
Intermediate Factors |
|
Add Variable by Lag Differencing |
|
|
Optimization Parameters |
Add Outflows |
|
Add Parallel Accumulators |
|
Add Power Law |
|
Add Rate |
|
Add Expression to the Simulation History |
|
Add State Mappings |
|
Sums of States and Parameters |
|
compute and add vaxrates to ratemat (returns whole ratemat because the update part is non-trivial) |
|
Temporal aggregation of pansim objects |
|
Aggregate age categories into larger age categories |
|
Convert struc Object to a character vector |
|
|
Convert between Types of Flexmodels |
Convert struc Object to a matrix |
|
|
What Variables are Available? |
calculate convolution |
|
Estimate model parameters from data |
|
Combined calibration of model to multiple types of data |
|
Calibrate Flexmodel |
|
Check compatibility of user-specified age categories with age categories in Mistry data |
|
Helper function to check setting-specific contact rate list initialization |
|
Compute elementwise multiplication of a vector by each column in a matrix This is implemented for performance reasons, as it is much faster than sweep. |
|
Compare Automatic and Numerical Differentiation |
|
|
Compare TMB-based and classic MacPan Simulations |
Symbolic Complement and Inverse |
|
condense an object |
|
Condense columns (infected, ICU, hospitalized) in a pansim output |
|
collapse age/testing/etc. categories (only; don't do other condensation) |
|
condense vaxified parameters to base parameters |
|
collapse (non-accumulator) states into subcategories (ages, vax status) |
|
collapse vaccination categories (only; don't do other condensation) |
|
Constant Named Vector |
|
Cross Two Sets of Names in Matrix Form |
|
|
Deprecated Simulation Functions |
Describe parameters |
|
Is |
|
distribute counts given a desired distribution (with smart rounding) |
|
Take a single simulation time step |
|
Expand and Contract struc and struc_expanded Objects |
|
Expand Names |
|
Expand Parameter List to Include Initial Proportion of Susceptibles |
|
Expand parameter list to include age structure |
|
Edit parameter description attribute to include age-specific definitions (helper function for `expand_params_age()`) |
|
Edit parameter description attribute to include variant-specific definitions (helper function for `expand_params_variant()`) |
|
Edit parameter description attribute to include vax-specific definitions (helper function for `expand_params_vax()`) |
|
Expand parameter list to include age structure using Mistry et al. data |
|
Expand parameter list to include variant strain |
|
Expand parameter list to include vaccination |
|
expand state vector by age classes and population distribution |
|
expand state vector by vaccination status |
|
expand states and values to include |
|
Extend End Date |
|
Factory Fresh MacPan Options |
|
adjust pars to match targets |
|
convert 'old' forecast args to 'new' format |
|
Initialize Flexible Compartmental Model |
|
find confidence envelopes by simulation |
|
simulate/forecast a single trajectory |
|
extract and return original fitting data |
|
compute moments of generation interval (mean and CV^2) |
|
compute mean generation interval from parameters |
|
calculate R0 for a given set of parameters |
|
|
Get and Set Model Parameters |
Compute total number of vaccine doses actually administered per day in a simulation |
|
get dominant eigenvector |
|
compute R0, r, etc. based on kernel computation |
|
Get McMasterPandemic Options |
|
generate reasonable default opt_pars |
|
return growth rate (from Jacobian) |
|
gradient function for ODE runs |
|
Get Substrings by Indices and Separators |
|
Initial Population |
|
apply inverse-link functions to parameter vector or list based on names |
|
Test if 1-by-1 |
|
Layered Zero State Vector |
|
Regular Expression Conveniences |
|
Converts a classic ageified model to a flexmodel |
|
Represent a Standard Unstructured Model as a flexmodel |
|
construct vector of transmission multipliers |
|
construct vector of transmission multipliers |
|
construct a Gamma-distributed delay kernel |
|
Hello World |
|
construct Jacobian matrix for ICU model (not quite complete: doesn't include flows to R) |
|
Make an Omicron invasion model |
|
Create transition matrix |
|
SIR Model |
|
retrieve parameters from a CSV file |
|
make weights vector for tests |
|
Make a Two-Dose Vaccination Model |
|
generate per capita daily vaccination rates |
|
Specify Matrix of Rates |
|
Merge Named Vector Attribute |
|
Merge One Vector into Another by Name |
|
generate a population distribution (as a vector of counts) |
|
Construct vector of age category labels |
|
Helper function to generate a vector of setting-specific contact rates |
|
Make population distribution using Mistry et al. data |
|
generate a contact matrix (where each row is a probability distribution) |
|
Construct vector of vaccine category labels |
|
negative log-likelihood function |
|
self-naming list (copied from lme4:::namedList) |
|
|
global variables for testify expansion |
Sample data and fit from Ontario (up to 2020-04-18) |
|
Fitted models to Ontario data |
|
Optimizer Object |
|
|
Wrapped Optimizers for Flexmodels |
Parse a Flexmodel Formula |
|
pivot an object |
|
plot method for simulations |
|
plot forecasts from fits |
|
Plot age-structured simulation result faceted by age categories |
|
Plot age-structured simulation result faceted by state |
|
make forecasts from sim |
|
Prepare age-structured simulation results data frame for plotting |
|
print parameters, possibly with detailed description |
|
run a pure-exponential sim; uses run_sim_range with a population of 1 (proportions) and a very small starting value, run for 100 steps (by default) used to calculate either r (technically r0) or eigenvector (for distributing initial exposed across states) |
|
R Mode |
|
Compare R and TMB Engines |
|
Rate Summary |
|
read simulation parameters |
|
Repeat a Rate for Several Rate Matrix Elements |
|
Repair ageified names |
|
convert a parameter vector back to a structured list
Like |
|
Run pandemic simulation |
|
Ageify a basic simulation |
|
run simulation with one or more breakpoints |
|
run with log-linear model applied to beta |
|
run with transmission propto relative mobility |
|
Run simulation across a range of times |
|
Test if struc Objects have the Same Dimensions |
|
Set and Reset Spec Version |
|
visualize rate (per-capita flow) matrix |
|
Ensemble Simulation |
|
Simulation History |
|
Spec and Feature Checks |
|
|
Spec Version |
String Concatenation Operators |
|
|
Class to Represent Scalar, Vector, or Matrix Structure |
Construct a struc Object |
|
Repeat a Block |
|
Numerically Evaluate Struc Object |
|
Class to Represent an Expanded Matrix Structure Object |
|
Construct a struc_expanded Object |
|
Stretch a Block |
|
summary method for |
|
expand rate matrix for testing status |
|
Convert expression string to TeX format |
|
convert a tibble row (with all entries of the same data type) to a named vector (used in `condense_state()`) |
|
Time Two Expressions |
|
Make Objective Function with TMB |
|
TMB Mode |
|
Extract Parameter Vector to Pass to a TMB Function |
|
Parameter Vectors Transformed for TMB |
|
Topological Sort |
|
Translate state variables |
|
unpack a list into the current (calling) environment
this is a replacement for |
|
update parameters within a list of parameters |
|
Specify and Name Variables for Condensation |
|
Helper function to update setting-specific contact rate list |
|
Update Disease-Free State |
|
Update Error Distribution |
|
calculate only updated force of infection at present, this is the only state-dependent per capita rate maybe more efficient than modifying & returning the whole matrix |
|
Update Initial State |
|
Update Linearized Model Parameters |
|
Update Observation Error |
|
Update Observed Data |
|
Update Default Parameters |
|
Update Mistry-based parameters |
|
|
Update the Piece-Wise Parameter Time-Variation Schedule |
Update Random Effect Parameters |
|
Update Simulation Bounds |
|
Update TMB Indices |
|
Vector to Data Frame |
|
Vectors of Intermediate Factors |
|
Specify Vector of Rates |
|
display flow chart on current graphics device |
|
write parameters to CSV file |