-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathGLMs2pdf_paperplanes.Rmd
99 lines (61 loc) · 1.78 KB
/
GLMs2pdf_paperplanes.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
title: "Linear, Generalized, and Mixed/Multilevel models - an introduction with R"
author: "Francisco Rodriguez-Sanchez"
date: "http://bit.ly/frod_san"
output:
beamer_presentation:
incremental: yes
keep_tex: no
fig_caption: FALSE
header-includes:
- \def\begincols{\begin{columns}[c]}
- \def\endcols{\end{columns}}
- \def\begincol{\begin{column}{0.48\textwidth}}
- \def\endcol{\end{column}}
- \setlength{\emergencystretch}{0em}
- \setlength{\parskip}{0pt}
fontsize: 10pt
urlcolor: blue
linkcolor: blue
---
```{r include=FALSE, cache=FALSE}
library(rmarkdown)
library(knitr)
### Chunk options ###
## Text results
opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE)
## Code decoration
opts_chunk$set(tidy = FALSE, comment = NA, highlight = TRUE, size = "footnotesize")
# ## Cache
opts_chunk$set(cache = 2, cache.path = "knitr_output/cache/")
# opts_chunk$set(cache.extra = rand_seed)
#
# ## Plots
opts_chunk$set(fig.path = "knitr_output/figures/")
# opts_chunk$set(dpi = 300, fig.align = "default") # may want 'center' sometimes
#
# # Figure format
# opts_chunk$set(dev='pdf') # e.g. choose among 'pdf', 'png', 'svg'...
# # may include specific dev.args as a list... see knitr help
### Hooks ###
## Crop plot margins
#knit_hooks$set(crop = hook_pdfcrop)
```
# Introduction to linear models
```{r child = 'lm_intro.Rmd'}
```
# Linear models
```{r child = 'lm_paperplanes.Rmd'}
```
# Generalised Linear Models: Logistic regression
```{r child = 'glm_binomial.Rmd'}
```
# GLM for count data: Poisson regression
```{r child = 'glm_poisson.Rmd'}
```
# Mixed / Multilevel models
```{r child = 'mixed_models.Rmd', eval=FALSE}
```
## END
![](images/CClogo.png)
Source code and materials: https://github.com/Pakillo/LM-GLM-GLMM-intro