This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "t-SNE example using R" | |
output: html_notebook | |
--- | |
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. Execute each code chunk in sequence by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Cmd+Shift+Enter*. | |
The material here is based largely on [this post](https://datavizpyr.com/how-to-make-tsne-plot-in-r/) on the excellent (although advertisement-infested) _Data Viz with Python and R_ blog. | |
You may have to install several of the packages listed below (they are all on CRAN). RStudio may automatically prompt you to do so if you are running a recent version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "“COVOID”: A flexible, freely available stochastic individual contact model for exploring COVID-19 intervention and control strategies" | |
author: "Tim Churches & Louisa Jorm" | |
date: 2020-03-30 | |
output: | |
html_document: | |
self_contained: true | |
references: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: COVOID: A flexible, freely available stochastic individual contact model for exploring COVID-19 intervention and control strategies | |
author: Tim Churches | |
date: '2020-03-30' | |
slug: covoid-simulating-covid-19-interventions-with-r | |
categories: | |
- R Language | |
- Guest Post | |
- Applications | |
- Medicine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
control.icm <- function(type, nsteps, nsims = 1, | |
rec.rand = TRUE, quar.rand = TRUE, hosp.rand = TRUE, disch.rand = TRUE, | |
fat.rand = TRUE, a.rand = TRUE, d.rand = TRUE, initialize.FUN = initialize.icm, | |
infection.FUN = infection.icm, recovery.FUN = recovery.icm, | |
departures.FUN = departures.icm, arrivals.FUN = arrivals.icm, | |
get_prev.FUN = get_prev.icm, verbose = FALSE, | |
verbose.int = 0, skip.check = FALSE, ncores=1, ...) { | |
# Get arguments | |
p <- list() |