Skip to content

Commit

Permalink
fit error in DHARMa vignette example
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Thorson committed Oct 18, 2024
1 parent aa615fc commit 7ee14a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ Suggests:
MARSS,
ggplot2,
ggpubr,
ggraph,
grid,
vars,
testthat,
Expand Down
2 changes: 1 addition & 1 deletion vignettes/vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ We can also calculate leave-one-out residuals and display them using DHARMa:
# sample-based quantile residuals
samples = loo_residuals(fit, what="samples", track_progress=FALSE)
which_use = which(!is.na(data))
fitResp = loo_residuals( fit, what="loo", track_progress=FALSE)
fitResp = loo_residuals( fit, what="loo", track_progress=FALSE)[,'est']
simResp = apply(samples, MARGIN=3, FUN=as.vector)[which_use,]
# Build and display DHARMa object
Expand Down

0 comments on commit 7ee14a5

Please sign in to comment.