Last active
June 9, 2020 13:19
-
-
Save kylebaron/c4e163ecc0576dc48150f036c0575fb9 to your computer and use it in GitHub Desktop.
Reproducibility in Rmd
This file contains 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: "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