Core Functions |
|
|---|---|
Prepare a tree (or trees) for EpiFusion |
|
Generate an EpiFusion XML file |
|
Run EpiFusion from R |
|
Load results from EpiFusion folder into an R object |
|
Parse results from raw EpiFusion object into a R object with infection, Rt, cumulative infection and parameter posteriors |
|
Extract a trajectory table from an EpiFusion posterior R object |
|
Sample Datasets |
|
Load baseline simulated dataset for trying EpiFusion |
|
Load step-change in sampling simulated dataset for trying EpiFusion |
|
Individual Result Loading Functions |
|
Load acceptance rates from EpiFusion folder into an R object |
|
Load beta trajectories from EpiFusion output folder into a list of dataframes |
|
Load cumulative infections trajectories from EpiFusion output folder into a list of dataframes |
|
Load trajectories of fitted epidemiological cases from EpiFusion output folder into a list of dataframes |
|
Load infection trajectories from EpiFusion folder into a list of dataframes |
|
Load likelihood trace from each chain of an EpiFusion analysis |
|
Load parameter samples from EpiFusion analysis |
|
Load Rt trajectories from EpiFusion folder into a list of dataframes |
|
Plotting Functions |
|
Plots the likelihood trace of the chains of an EpiFusion analysis |
|
Plot the parameter traces from a raw EpiFusion object |
|
Plot the trajectory posteriors from a parsed EpiFusion trajectory table |
|
Plot the trajectory posteriors from a raw EpiFusion object separated by chain |
|
Other Functions |
|
Calculate means and HPD intervals of new infections per day from the cumulative infections posterior samples |
|