Skip to content

Commit

Permalink
fix predictions of spline models when using addition argument 'subset'
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Sep 18, 2019
1 parent eae2fa0 commit 97c1c17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
censored models thanks to Andrew Milne. (#744)
* Fix error in the generated Stan code of multivariate
`zero_inflated_binomial` models thanks to Raoul Wolf. (#756)
* Fix predictions of spline models when using addition
argument `subset` thanks to Ruben Arslan.

# brms 2.10.0

Expand Down
1 change: 1 addition & 0 deletions R/data-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ extract_old_standata.mvbrmsterms <- function(x, data, ...) {
#' @export
extract_old_standata.brmsterms <- function(x, data, ...) {
out <- named_list(c(names(x$dpars), names(x$nlpars)))
data <- subset_data(data, x)
for (dp in names(x$dpars)) {
out[[dp]] <- extract_old_standata(x$dpars[[dp]], data, ...)
}
Expand Down

0 comments on commit 97c1c17

Please sign in to comment.