-
Notifications
You must be signed in to change notification settings - Fork 0
/
npde.qmd
78 lines (50 loc) · 829 Bytes
/
npde.qmd
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
---
fig-height: 4.5
fig-width: 4.5
---
```{r setup, include = FALSE}
source("global.R")
```
# NPDE plots
## Versus TIME `[npde_time]`
```{r}
npde_time(df)
```
## Versus TAD `[npde_tad]`
```{r}
npde_tad(df)
```
## Versus TAFD `[npde_tafd]`
```{r}
npde_tafd(df)
```
## Versus PRED `[npde_pred]`
```{r}
npde_pred(df)
```
## Versus continuous `[npde_cont]`
```{r}
npde_cont(df, "WT")
```
### Vectorized
These plots can take in a vector of continuous column names
and return a list of plots which can be arranged.
```{r}
#| fig-width: 7
#| fig-height: 6
covariates <- c("WT", "AGE", "ALB")
npde_cont(df, covariates) %>%
pm_grid()
```
## Versus categorical `[npde_cat]`
```{r}
npde_cat(df, "STUDYc")
```
## QQ-plot `[npde_q]`
```{r}
npde_q(df)
```
## Histogram `[npde_hist]`
```{r}
npde_hist(df)
```