Skip to content

Commit

Permalink
clarify why model fit is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mccarthy-m-g committed Oct 26, 2023
1 parent de272d7 commit a6a5afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/simulate_residuals.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Or check the entire model.
check_model(simulated_residuals)
```

The `check_model()` function is the main reason we don't want to prematurely extract the residuals in `simulate_residuals()`, because if we do then the `simulated_residuals` won't contain the model fit (`fittedModel` in the output below), so we won't be able to do all of the checks we would want to do using the model.
The `check_model()` function is the main reason we don't want to prematurely extract the residuals in `simulate_residuals()`, because if we do then the `simulated_residuals` won't contain the model fit (`fittedModel` in the output below), so we won't be able to do all of the checks we would want to do using the model (e.g., posterior predictive checks).

```{r}
str(simulated_residuals, max.level = 1)
Expand Down

0 comments on commit a6a5afe

Please sign in to comment.