All functions |
|
---|---|
Evaluate the log-density of the measurement process by calling measurement process density functions via external Xptr. |
|
Integrate a system of ODEs via external Xptr. |
|
Update rates by calling rate functions via Xptr. |
|
Simulate from the measurement process by calling measurement process functions via external Xptr. |
|
Set the parameters for a system of ODEs via XPtr. |
|
Add the contents of one vector to another vector |
|
Reconstitute a joint kernel covariance matrix from block covariances |
|
Construct a matrix containing the compartment counts at a sequence of census times. |
|
Given a list of (unparsed) rate functions, construct the matrix of compartment flows. |
|
Construct an indicator matrix for which measurement process variables are measured at which observation times. |
|
Generate a template for a stemr observation matrix, or combine multiple datasets into a stemr observation matrix; used internally. |
|
Construct an adjacency matrix for specifying which rates must be updated when a transition occurs, with adjacency determined at the lumped population level. |
|
Construct an adjacency matrix for which rates need to be update when there is a change in the time-varying covariates. |
|
Indicator matrix for determining which time-varying covariates change at each row of a time-varying covariate matrix. |
|
Construct a time-varying covariance matrix that includes time and seasonality, based on a user-supplied time-varying covariate matrix. Used internally. |
|
Return the log-lik of initial distribution draws |
|
Return the log prior density over all parameter blocks |
|
Construct a matrix containing the incidence counts at a sequence of census times. |
|
Construct a matrix containing the compartment counts and the incidence at a sequence of census times. |
|
Wrapper for evaluating the compartment counts at census times. |
|
Census each path in a collection of paths to obtain the compartment counts at census times. |
|
Check if time varying parameters depend on initial conditions |
|
Cholesky decomposition |
|
Parses a function of each of a vector of model compartments and aggregates the results. |
|
Difference an incidence variable in a census matrix. |
|
Convert an LNA path from the counting process on transition events to the compartment densities on their natural scale, making the conversion in place for an existing census matrix. |
|
Copy some of the rows of one matrix into another |
|
Copy the contents of one matrix into another |
|
Copy an element from one vector into another |
|
Copy an multiple elements from one vector into another |
|
Copy the contents of one matrix into another |
|
Copy the columns of one matrix into another |
|
Copy the contents of one matrix into another |
|
Copy the contents of one vector into another |
|
Copy the contents of one vector into another |
|
Multivariate normal density |
|
Draw new N(0,1) values and fill a vector. |
|
Draw new N(0,1) values and fill a matrix. |
|
Generates an emission list to be supplied to the |
|
Evaluate the log-density of the measurement process by calling measurement process density functions via external Xptr. |
|
Evaluate the log-density of a possibly time-verying measurement process by calling measurement process density functions via external Xptr. |
|
Expit transformation, i.e. inverse logit |
|
Given a vector of interval endpoints |
|
Fit a stochastic epidemic model using the linear noise approximation or ordinary differential equations to approximate the latent epidemic process. |
|
Declare a time varying covariate to be a forcing variable that moves individuals between model compartments at discrete times. Flow in and out of model compartments is allocated proportionally to the compartment counts in the source and destination compartments. |
|
Hello, World! |
|
Convert an LNA/ODE incidence path to a prevalence path. |
|
Increment an element of a vector by 1 |
|
Add one vector to another |
|
Generates a list of settings for sampling the latent LNA paths and time-varying parameters via elliptical slice sampling. |
|
Sample a new LNA path via elliptical slice sampling. |
|
Initialize the LNA path |
|
Initialize the ODE path |
|
Insert one matrix into another |
|
insert an element into a vector |
|
Insert natural scale parameters into a parameter matrix |
|
Insert natural scale parameters into a parameter matrix |
|
Insert time-varying parameters into a tcovar matrix. |
|
Obtain the path of the deterministic mean of a stochastic epidemic model by integrating the corresponding ODE functions. |
|
Interact character vectors to get a character vector of concatenated combinations. |
|
Determines whether a model is progressive based on its flow matrix |
|
Generates a list of settings for sampling the latent LNA paths and time-varying parameters via elliptical slice sampling. |
|
Convert an LNA path from the counting process on transition events to the compartment densities on their natural scale. |
|
Sample a new LNA path via elliptical slice sampling. |
|
Construct and compile the functions for proposing an LNA path, with integration of the LNA ODEs accomplished using the Boost odeint library. |
|
Construct and compile the functions for proposing an ODE path, with integration of the deterministic mean ODEs accomplished using the Boost odeint library. |
|
Logit tranformation |
|
Construct a stem object. |
|
Map N(0,1) stochastic perturbations to an LNA path. |
|
Map parameters to the deterministic mean incidence increments for a stochastic epidemic model. |
|
Copy a matrix into a slice of an array |
|
Specify an MCMC transition kernel |
|
Generate a list of settings for Metropolis-Hastings updates and adaptation via the robust adaptive Metropolis algorithm (Vilhola, 2012). |
|
Multivariate normal Metropolis-Hastings update |
|
Generate a list of settings for multivariate normal slice sampling |
|
Generate a list of settings for automated factor slice sampling |
|
Update model parameters via factor slice sampling |
|
normalise a vector in place |
|
return a normalised vector |
|
Define a parameter block for an MCMC kernel |
|
Insert parameters into each row of a parameter matrix |
|
Insert parameters into the first row of a parameter matrix |
|
Insert parameters into the first row of a parameter matrix |
|
Parse the LNA rates so they can be compiled. |
|
Instatiate the C++ emission probability functions for simulation and density evaluation for a stochastic epidemic model measurement process and return a vector of function pointers. |
|
Parse the ODE rates so they can be compiled. |
|
Generate a list of objects used in block updating MCMC parameters |
|
Instatiate the C++ rate functions for a stochastic epidemic model and return a vector of function pointers. |
|
Plot the adaptation schedule for an adaptive MCMC algorithm for a given
number of iterations, given as |
|
Prepare initial distribution list for MCMC |
|
Prepare an LNA elliptical slice sampling schedule |
|
Prepare the parameter blocks for MCMC |
|
Simulate an LNA path using a non-centered parameterization for the log-transformed counting process LNA. |
|
Simulate an approximate LNA path using a non-centered parameterization for the log-transformed counting process LNA. Resample the initial path in place, then update with elliptical slice sampling. |
|
Multivariate normal Metropolis-Hastings proposal |
|
Generates a rate list to be supplied to the |
|
Convert unparsed rate functions into rate functions appropriate for applying the LNA to the transition event count processes. |
|
Convert unparsed rate functions into deterministic mean ODE functions. |
|
Identify which rates to update when a state transition event occurs. |
|
Identify which rates to update based on changes in the time-varying covariates. |
|
Hello, Rcpp! |
|
Reset the nugget based based on a sample |
|
Reset a vector by filling it with an element |
|
Insert the compartment counts at a sequence of census times into an existing census matrix. |
|
Produce samples from a multivariate normal density using the Cholesky decomposition |
|
Stick-Breaking Logit-Normal |
|
Sample the unit sphere. |
|
Save the elliptical slice sampling record |
|
Save an MCMC sample |
|
Stick-Breaking Logit-Normal Explorer |
|
Convert Normal Draws to Stick-Breaking Logit-Normal Draws |
|
Set the parameter values for a stochastic epidemic model object. |
|
Simulate a stochastic epidemic model path via Gillespie's direct method and returns a matrix containing a simulated path from a stochastic epidemic model. |
|
Simulate a data matrix from the measurement process of a stochastic epidemic model. |
|
Simulations from a stochastic epidemic model. |
|
Generate the objects governing the dynamics of a stochastic epidemic model. |
|
Determines the initial state probabilities or concentrations at the first observation time. This function is applied internally in different ways depending on whether inference (or simulation) is accomplished using the LNA or using Bayesian data augmentation (Gillespie's direct algorithm for simulation). |
|
Generate a list of objects governing the measurement process for a stochastic epidemic model. |
|
Assign a vector of parameters to a stem object |
|
Makes comp_fcn replacements. |
|
Parse a string and substitute powers of the form a^b with pow(a,b). |
|
Generate a list to be used in specifying a time-varying parameter that has a latent Gaussian distribution and is updated via elliptical slice sampling. |
|
Generates a list of settings for sampling the latent LNA paths and time-varying parameters via elliptical slice sampling. |
|
Sample a new LNA path via elliptical slice sampling. |
|
Copy a matrix into a column of a slice of an array |
|
Copy a vector into a matrix |
|
Detects which states in a model are absorbing states |