Man pages for c97sr/learnidd
A collection of functions useful for the study of infectious disease dynamics

adm.apply.seedAssumes the existance of farmdf in an enclosing environment
adm.load.sheep.prep.simsets up data set for simulation
adm.plot.farm.and.seedsFunction to plot farms randomly near to the coast
adm.plot.genFunction to plot the generations of the simulation
adm.seed.sheepFunction to see farms randomly near to the coast
adm.setup.aux.matcreates distance matrix
adm.sheep.paramsFunction to setup a parameter object for the smv simulations
augment_datafunction to augment data
calc_log_likelihoodcalculate log likelihood of data given model prediction...
calc_prediction_accuracycalculate proportion of prediction points which are within...
calculateLogLikCluster_incubationcalculate the contribution of a cluster to the log...
calculateLogLikCluster_transmissioncalculate the contribution of a cluster to the log...
calculateLogLik_incubationcalculate log likelihood for the model of incubation only,...
comp_seirSolves the SEIR model
DA_conditionfunction to decide whether data should be augmented for a...
extract_incidenceextracts the incidence data for a given country and year
extract_predicted_pointsextract predicted points from linear regression object
extract_predicted_points_seirextract predicted points for SEIR model
extract_subset_predictionextract subset of prediction data frame containing...
extract_week_indexextract index of week number from week names
f.incubcalculate the probability density for a given incubation...
fit_seirfit the SEIR model to data
hcalculate the cumulative hazard of infection at time t
Hcalculate the cumulative hazard of infection at time t
likelihood_profile_seirconstruct a likelihood profile for R_0 given data
linear_regressionperforms linear regression for a given country and year
logRatioProposal_DAfunction to return the log ratio of the proposal distribution...
plot_incidenceplots the incidence
plot_incidence_allplots the incidence for a given country (all years)
plot_likelihood_profileplot a likelihood profile for R_0 given data
run_MCMCrun MCMC algorithm to fit parameters to data
run_MCMC_DArun MCMC with data augmentation to fit parameters to data
Scalculate the probability of having survived infection at...
solve_seir_modelsolve SEIR model for incidence
solve_seir_wrappersolve SEIR model for incidence, specifying default parameters...
subset_incidence_datasubset incidence data for weeks of interest
c97sr/learnidd documentation built on Jan. 12, 2025, 4:24 p.m.