Man pages for pspc-data-science/branchsim
Gamma negative binomial branching process simulation of epidemics

add_layerBuilds the next generation of nodes in a tree.
as_tidygraphConvert a tree to a 'tidygraph' object.
asymptotic_plotA gradient plot of the Malthusian parameter as a function of...
average_component_sizeThe average component size of paths that go extinct.
branchsim-packagebranchsim: Gamma negative binomial branching process...
build_treeSimulate a single epidemic path
calc_avg_pathCompute average epidemic path
calc_muExpectation of the logarithmic distribution
calc_R0Calculate R0 implied from the model
char_functionThe characteristic function of the branching process.
component_size_plotA gradient plot of the average compenent size if extinction...
derivative_generating_functionThe derivative of the generating function of the branching...
dMuA function for the infinitesimal expectation in births:...
equalize_pathsMake all paths end at a fixed time
extinct_plotA gradient plot of the extincition probability as a function...
find_gamma_parametersGet the shape and rate parameter of a gamma distribution...
find_kappaFind Gamma rate parameter
find_pA function for obtaining the p parameter of the log-series...
find_p_from_quantileFind logarithmic distribution parameter from a quantile value
GA function for the expecation for the number of individuals...
generating_functionThe generating function of the branching process f(s) = sum_k...
get_extinct_probA function for obtaining the extinction probability over all...
get_malthusianA function for obtaining the Malthusian parameter of the CMJ...
make_first_layerInitialize the tree
plot_dendrogramPlot dendrogram for a single path
plot_expPlot the time between infectious events
plot_gammaPlot the Gamma density for the communicable window
plot_gamma_distThe plot of communicable window's distribution.
plot_logPlot the number of individuals infected per infectious event
plot_pathsPlot epidemic paths
plot_R0Contour plot of R_eff for different values of lambda and mu.
plot_single_mother_distThe plot of a single mother's distribution function for her...
plot_single_pathShow infection counts (cumulative and ongoing) for a single...
prob_distribution_2The probability distribution of births from a single mother...
renewal_functionRenewal equation solution to the expectation of the...
renewal_plotPlot the solution to the renewal equation solution for...
run_simsMultiple path simulations over a range of input parameters
single_mother_distributionThe probability distribution of births from a single mother...
treelist_to_pathsCompute paths from a list of trees
pspc-data-science/branchsim documentation built on Jan. 19, 2021, 10:10 a.m.