-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperformance.Rmd
More file actions
67 lines (44 loc) · 1.04 KB
/
performance.Rmd
File metadata and controls
67 lines (44 loc) · 1.04 KB
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
---
title: "testing performance package"
author: "Ben Anderson"
date: "25/04/2022"
output:
pdf_document: default
html_document: default
---
# `Performance` package
https://easystats.github.io/performance/
```{r setup}
knitr::opts_chunk$set(echo = TRUE)
library(performance)
mtcars <- mtcars
```
Use some mtcars data
```{r cars}
summary(mtcars)
```
# Make a model, any model
For example:
```{r qsec}
qsecModel <- lm(formula = qsec ~ carb + disp + wt, data = mtcars)
qsecModel
summary(qsecModel)
```
# Check model `performance`
```{r qsecCheck, fig.cap="Testing the model"}
performance::check_model(qsecModel,
panel = FALSE # create 1 plot per check (otherwise we get them as smaller panels)
)
```
> Very Nice...
# Use `see` to look-see the model
https://easystats.github.io/see/
```{r plotModel}
library(see)
library(parameters)
library(ggplot2)
plot(parameters::parameters(qsecModel)) +
ggplot2::labs(title = "A Dot-and-Whisker Plot")
```
> Oh yes, we quite like that too...
# The end