Skip to content

Instantly share code, notes, and snippets.

@kylebaron
Last active June 9, 2020 13:19
Show Gist options
  • Save kylebaron/c4e163ecc0576dc48150f036c0575fb9 to your computer and use it in GitHub Desktop.
Save kylebaron/c4e163ecc0576dc48150f036c0575fb9 to your computer and use it in GitHub Desktop.
Reproducibility in Rmd
---
title: "reproducible rmd"
output: pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
library(mrgsolve)
set.seed(11223)
data <- expand.ev(ID = 1:1000, amt = 100, ii = 24, addl = 27)
mod <- mrgsolve:::house(
end = 24*28,
delta = 1,
omega = dmat(1,1,1,1),
sigma = dmat(1)
)
sum(mrgsim(mod,data,output="matrix"))
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment