Skip to content

Commit

Permalink
do not evaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
wlangera committed Dec 5, 2024
1 parent 421f64f commit 5470712
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/markdown/test_densiteitsmodellering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ Wij hebben geen data tussen 0 en 1. Deze modellen maken daar wel predicties. Het
We hebben een hurdle model nodig die indien > 0 een truncated Gamma/Lognormal gebruikt vanaf 1.
Daarvoor moeten we [zelf een familie maken](https://cran.r-project.org/web/packages/brms/vignettes/brms_customfamilies.html).

```{r}
```{r, eval=FALSE}
hurdle_gamma_trunc <- custom_family(
"hurdle_gamma_trunc", dpars = c("mu", "shape", "hu"),
links = c("log", "log", "logit"),
Expand Down Expand Up @@ -1905,9 +1905,7 @@ test_hu_gamma_trunc <- brm(
seed = 123,
file = file.path(cache_dir, "test_brms_gamma2"),
file_refit = "on_change")
```
```{r}
expose_functions(test_hu_gamma_trunc, vectorize = TRUE)
posterior_predict_hurdle_gamma_trunc <- function(i, prep, ...) { # nolint
Expand Down Expand Up @@ -1976,4 +1974,3 @@ dsm(
method = "REML"
)
```

0 comments on commit 5470712

Please sign in to comment.