-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.Rmd
77 lines (67 loc) · 1.85 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
title: Model Estimation by Example
subtitle: Demonstrations with R
author: |
<span class="noem">Michael Clark</span> <br>
[m-clark.github.io](https://m-clark.github.io/)
# date: "`r Sys.Date()`"
site: bookdown::bookdown_site
output:
bookdown::gitbook:
anchor_sections: FALSE
documentclass: book
# bibliography: refs.bib
biblio-style: apalike
always_allow_html: true
link-citations: yes
description: "This document provides 'by-hand' demonstrations of various models and algorithms. The goal is to take away some of the mystery by providing clean code examples that are easy to run and compare with other tools."
cover-image: 'img/title_plot.svg'
favicon: 'img/R.ico'
url: 'https\://m-clark.github.io/models-by-example/'
github-repo: 'm-clark/models-by-example/'
---
```{r chunk_setup, include=FALSE, eval=TRUE}
knitr::opts_chunk$set(
# code
echo = TRUE,
message = FALSE,
warning = FALSE,
error = FALSE,
comment = NA,
R.options = list(width = 220),
# viz
dev.args = list(bg = 'transparent'),
dev = 'svglite',
fig.align = 'center',
out.width = '75%',
fig.asp = .75,
# cache
cache.rebuild = FALSE,
cache = TRUE
)
```
```{r load_common_packages, echo=FALSE, cache=FALSE, eval=TRUE}
library(tidyverse)
library(kableExtra)
library(patchwork)
kable_df = function(data, digits = 3, ...) {
kableExtra::kable(
data,
digits = digits,
format = 'html',
booktabs = T,
# longtable = F,
linesep = "",
...,
) %>%
kableExtra::kable_styling(full_width = F)
}
theme_set(visibly::theme_clean())
```
####
```{r rimg, fig.align='center', out.width=800, out.height=600, echo=FALSE, cache=FALSE}
knitr::include_graphics('img/title_plot.svg', dpi = NA)
```
```{r ccimg, fig.align='center', out.width=0, fig.show='hide', echo=FALSE}
knitr::include_graphics('img/mc_logo.png', dpi = NA)
```