Individual-based SIR models in R and Rcpp

age_of_death | Probability death with be at a given age. |

conditional_lifespan | Draw conditional lifespan |

current_age | Draw current age |

days_to_steps | Convert days to steps |

demog_test | Test demography |

draw_equilibrium_age | Draw an age (in days) from the equilibrium age distribution |

draw_equilibrium_death_age | Draw a death age conditional on an age from the equilibrium... |

draw_sample | Sample events for a group of individuals from binomial |

equilibrium_age | Equilibrium age distribution. |

equilibrium_age_death | Equilibrium age of death |

equilibrium_age_distribution | Equilibrium age distribution |

format_cpp | Format c++ |

get_time | Model times |

ibm_closed_SIR | Closed SIR (IBM) |

infection_probability | Calculate the current probability of infection |

lifetable_to_transtion_matrix | Lifetable to transition matrix |

odin_closed_sir | Closed SIR (ODIN) |

open_sir | Open sIR |

open_sir_rcpp | Test demography |

pipe | Pipe graphics |

post | Post processing wrapper for c++ output |

prob_death_who_to_annual | Smooth WHO life table death probabilites |

rate_to_prob | Convert a rate to a probability |

sample_double | Sample single double from range. |

sample_int | Sample single integer from range. |

set_time | Set time |

weighted_sample_double | Sample single double from vector with probability weights. |

weighted_sample_int | Sample single integer from vector with probability weights. |

weighted_sample_min_double | Sample single double from vector with probability weights... |

weighted_sample_min_int | Sample single integer from vector with probability weights... |

years_to_steps | Convert years to steps |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.