Skip to content

Commit

Permalink
fix reloo for stan_polr (don't partial match x$z)
Browse files Browse the repository at this point in the history
closes #450
  • Loading branch information
jgabry committed Jul 28, 2020
1 parent bb59f7a commit 17c5b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/loo.R
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ reloo <- function(x, loo_x, obs, ..., refit = TRUE) {
newdata = d[omitted, , drop = FALSE],
offset = x$offset[omitted],
newx = get_x(x)[omitted, , drop = FALSE],
newz = x$z[omitted, , drop = FALSE], # NULL other than for some stan_betareg models
newz = x[["z"]][omitted, , drop = FALSE], # NULL other than for some stan_betareg models
stanmat = as.matrix.stanreg(fit_j)
)
}
Expand Down

0 comments on commit 17c5b4a

Please sign in to comment.