Skip to content

Commit

Permalink
Don't overwrite mlr_pvalue_viz
Browse files Browse the repository at this point in the history
  • Loading branch information
ismayc committed Dec 27, 2024
1 parent e8e1fe1 commit 924cd4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 10-inference-for-regression.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2497,15 +2497,15 @@ visualize(null_distribution_mlr) +
```{r echo=FALSE}
mlr_pvalue_viz <- visualize(null_distribution_mlr) +
shade_p_value(obs_stat = observed_fit, direction = "two-sided")
#if (!file.exists("images/mlr_pvalue_viz.png")) {
if (!file.exists("images/mlr_pvalue_viz.png")) {
ggsave(
filename = "images/mlr_pvalue_viz.png",
plot = mlr_pvalue_viz,
width = 6,
height = 11,
dpi = 320
)
#}
}
```

```{r shaded-p-values-partial, echo=FALSE, out.width="55%", fig.height=12, fig.cap="Shaded p-values for the partial slopes in this multiple regression."}
Expand Down

0 comments on commit 924cd4e

Please sign in to comment.