Man pages for ada-w-yan/deltaomicron1
Fit model to Delta and Omicron growth curves with and without Camostat

add_y_scaleSpecifies the 'y' scale of a 'ggplot' object.
apply_named_argsa version of apply. if MARGIN = 1, the values in each column...
arrange_gridarrange a list of ggplot objects into a grid in a single...
calc_LL_log10normal_thresholdCalculate the log likehood of data given true model outputs...
calc_moment_from_pmfcalculate the nth moment from a probability mass function
calc_r_camostat_stagescalculates r for the TEIV model with Erlang-distributed...
calc_r_camostat_stages_different_eclipsecalculates r for the TEIV model with Erlang-distributed...
calc_sol_add_stagesfor a set of parameters without stages, add stages and...
calc_sol_chaincalculate solution to ODEs for each pathway, and extract...
calc_sol_chain_camostat_amphoBcalculate solution to ODEs for each pathway, and extract...
compile_modelcompile an odin model
cont_MCMCcontinue running MCMC
CREATE_POSTERIOR_FUNC_fn_camostatcreates a closure to calculate the likelihood and model...
CREATE_POSTERIOR_FUNC_fn_camostat_amphoBcreates a closure to calculate the likelihood and model...
darkendarken a vector of hex codes for colours
dl10normAnalogue for dlnorm but in base 10
extract_max_LL_itersgiven an RData file, load the associated MCMC chains and find...
find_func_filefind the file containing a function
find_sign_change_indfind the indices at which a vector changes sign
gen_default_mcmcParsgenerate default MCMC parameters
generate_random_startGenerate random starting values from a parameter table
gen_mcmcParsgenerate default MCMC parameter values
gen_mcmcPars_longgenerate default MCMC parameter values
gen_mcmcPars_shortgenerate default MCMC parameter values for a short chain
gen_mcmcPars_timinggenerate default MCMC parameter values for a very short chain...
gen_nice_breaksformat a numeric vector of breaks nicely for printing
gen_prediction_ciproduce confidence intervals for model predictions
gen_summary_statistics_fn_camostatcreate closure to calculate summary statistics and provide...
gen_time_listGenerate vector of times at which to solve ODE for fitting
get_and_save_max_LL_paramsgiven an RData file, load the associated MCMC chains, find...
get_func_namesreturn names of all functions in a .R file
get_max_LL_paramsgiven an RData file, load the associated MCMC chains and find...
get_MCMC_chainextract chain from MCMC output
get_package_dirget name of directory which package is in
get_strain_namesdetermine strain names from parameter names
get_vars_from_list_with_checkextract variables from list, throwing an error if they are...
gg_color_hueEmulates the ggplot colour palette.
ggsave_wchversion of ggsave which suppresses warnings that rows are...
ggsave_wrapperwrapper function to feed arguments to ggsave
gm_meancalculate geometric mean of a vector
interpolate_vectorinterpolate ordered numeric vector into n_div intervals...
is_integer_likecheck if x is within 'tol' of 'x'
lapply_w_namea version of lapply() that supplies FUN with both the name...
lightenlighten a vector of hex codes for colours
list2heredump variables from a list to the parent frame
list_vars_from_environmentgather variables with given names from an environment into a...
load_into_listload contents of RData file into a list
load_packagesloads a character vector of packages
make_factormake factor out of a numeric vector
make_filenameconstruct plot filename
make_filename_from_numbermake string from number in format acceptable for filename
make_p_value_strformat a p-value for plotting
make_seedmake a default list of random number generator seeds for MCMC
make_solving_timemake a vector of solving times from a vector of times
Map_vapplya version of Map() where we specify the format of the output
mkdir_from_filenamemakes a directory from a filename
normalisenormalises a vector so that it sums to 1
no_warna version of a function that suppresses warnings
pairwise_stats_teststest whether the ratio of a summary statistic between two...
pl10normAnalogue for plnorm but in base 10
plot_bivariate_scattermake scatter plot of samples from joint posterior...
plot_bivariate_scatter_allplot bivariate scatter plots of all fitted variables
plot_diagnosticsplot the potential scale reduction factor vs the number of...
plot_dynamics_camostatplot viral dynamics
plot_dynamics_innerplot virus dynamics
plot_histogram_generalplot a nicer-looking histogram
plot_LLplot trace of log likelihood for each chain
plot_marginal_by_chainplot marginal histogram, either coloured or faceted by chain
plot_marginal_histogramplot the marginal histogram of a single fitted variable
plot_marginal_histogram_allplotting the marginal histogram of all fitted variables
plot_tracemake a trace plot of a single fitted variable
plot_trace_allplot the trace of all fitted variables
postprocess_chainmore postprocessing of MCMC output
postprocess_for_plottingpostprocessing of MCMC output
print_prctilescalculate percentiles for fitted parameters
read_Calu3_dataread Calu 3 data with different drugs
read_camostat_dataread data with and without camostat
read_csv_or_rdschecks if file exists in rds or csv format, and reads rds...
read_PCRread qPCR data
read_plaqueread plaque assay data
read_plaque_peacockread plaque assay data from Peacock et al. (2021) Nat...
read_prism_fileconstruct a data frame from a prism file
read_summary_statsreads summary stats from a tex file generated by running MCMC
rl10normAnalogue for rlnorm but in base 10
run_allwrapper for running and postprocessing MCMC chain
run_exp_camostatestimate parameters for the different models in the study
run_exp_camostat_amphoBestimate parameters for the different models in the study
run_exp_camostat_fit_subset_parsestimate prob_infect_tmprss2 and prob_infect_camostat, fix...
run_exp_camostat_shared_parsmutlstrain fit with some shared parameters
sample_from_priorsamples from joint prior distribution
save_allsaves all variables in parent environment
set_default_seedsset default random number generator seed for each
setup_and_run_MCMCsetup and run MCMC
solve_from_posterior_preincubsolve preincubation viral dynamics for one iteration of chain
solve_ODE_error_handlingsolve an ODE with error handling
source_filessources a character vector of files
specify_camostat_parameters_fnmake parameter table
specify_camostat_parameters_fn_fit_subset_parsmake parameter table where only some parameters are fitted...
sum_stagessum time series of odin solution across compartments defined...
thin_chainselect evenly spaced iterations from MCMC chain
thin_csv_or_rdsthins a csv or rds file, saves it with new name, optionally...
transform_pars_wrapper_camostatcreate a closure which transforms an unnamed numeric vector...
transform_pars_wrapper_tmprss2_onlycreate a closure which transforms an unnamed numeric vector...
try_freaddata.table::fread with tryCatch
try_readreads rds or csv with tryCatch
vcapplyshort for 'vapply(X, FUN, character(1), ...)'
viapplyshort for 'vapply(X, FUN, integer(1), ...)'
vlapplyshort for 'vapply(X, FUN, logical(1), ...)'
vnapplyshort for 'vapply(X, FUN, numeric(1), ...)'
ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.