-
Notifications
You must be signed in to change notification settings - Fork 0
/
08-statistics.Rmd
49 lines (40 loc) · 1.77 KB
/
08-statistics.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
# Powerful statistical methods at your fingertips
::: {.goals}
- ...
- ...
:::
Many simple stats are built into R (`glm()`, `chisq.test()` and many more). No additional
packages needed! For more advanced analyses there are often multiple packages. Best to ask
a domain expert what they use (or Google). Here are just a few examples:
- [GAM](https://noamross.github.io/gams-in-r-course/),
[HLM](https://github.com/lme4/lme4/), [Mixture
Models](https://mclust-org.github.io/mclust/)...
- [SEM with `{lavaan}`](https://lavaan.ugent.be/)
- Robust stats with {WRS2}
- Time series with [`{forecast}`](https://github.com/robjhyndman/forecast) `{zoo}`,
`{xts}`
- [Bayesian Statistics](https://github.com/rmcelreath/statrethinking_winter2019) with
[`{brms}`](https://paul-buerkner.github.io/brms/),
[`{rstanarm}`](https://mc-stan.org/rstanarm/),
[`{rstan}`](https://mc-stan.org/users/interfaces/rstan)
- [Text mining with `{tidytext}`](https://www.tidytextmining.com/)
- [Machine learning with `{tidymodels}`](https://www.tidymodels.org/)
- [Network analysis](https://kateto.net/network-visualization) with `{tidygraph}` or
`{igraph}`
- [Meta analysis](https://bookdown.org/MathiasHarrer/Doing_Meta_Analysis_in_R/) with
`{metafor}` and `{rmeta}`
- [Introduction to Statistical Learning](https://www.statlearning.com/) -- A classic
introduction to machine learning using R.
- [`{tidymodels}`](https://www.tidymodels.org/) -- package for a more modern machine
learning toolbelt in R
There are too many things to mention. The CRAN task views can be a good start.
Likewise, [Introductory Statistics in Psychology using R](https://rpsystats.com/)
## Statistical modeling
``` {.r}
t.test()
lm()
```
Let's try something more advanced...
``` {.r}
# ...
```