Skip to content

Commit

Permalink
show some more plots
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakillo committed Nov 24, 2024
1 parent 96578f1 commit 3000013
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions glm_binomial.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ visreg(tit.glm, scale = "response", rug = FALSE)
library(ggplot2)
library(sjPlot)
theme_set(theme_minimal(base_size = 16))
sjPlot::plot_model(tit.glm, type = "eff")
sjPlot::plot_model(tit.glm, type = "eff", terms = "class")
```


Expand Down Expand Up @@ -418,7 +418,7 @@ arm::binnedplot(predvals, titanic$survived - predvals)

## check_model (easystats)

```{r echo=TRUE, eval=FALSE}
```{r echo=TRUE}
check_model(tit.glm)
```

Expand Down
Binary file modified glm_binomial.pdf
Binary file not shown.
24 changes: 15 additions & 9 deletions lm.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,9 @@ plot(estimate_means(m2))

## Plot model (sjPlot)

```{r out.width="60%", eval=FALSE}
```{r out.width="60%"}
library("sjPlot")
plot_model(m2, type = "eff")
plot_model(m2, type = "eff", terms = "sex")
```


Expand Down Expand Up @@ -1164,6 +1164,16 @@ parameters(m3)
```


## Presenting model results

\footnotesize

```{r}
estimate_means(m3)
```



## Presenting model results

\scriptsize
Expand Down Expand Up @@ -1206,8 +1216,8 @@ plot(estimate_means(m3))

## Plot model (sjPlot)

```{r out.width="70%", eval=FALSE}
plot_model(m3, type = "eff")
```{r out.width="70%"}
plot_model(m3, type = "eff", terms = "site")
```


Expand Down Expand Up @@ -1342,15 +1352,11 @@ visreg(m4, xvar = "dbh", by = "site", overlay = TRUE, band = FALSE)
## Plot model (sjPlot)

```{r echo=TRUE, out.width='30%', eval=FALSE}
plot_model(m4, type = "eff")
plot_model(m4, type = "eff", terms = "site")

```

## Plot model (sjPlot)

```{r echo=TRUE, eval=FALSE}
plot_model(m4, type = "est")
```


## Plot model (easystats)
Expand Down
Binary file modified lm.pdf
Binary file not shown.

0 comments on commit 3000013

Please sign in to comment.