Skip to content

Commit

Permalink
fix issue #744
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Sep 3, 2019
1 parent 330ef74 commit 7817065
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions NEWS.md
@@ -1,3 +1,11 @@
# brms 2.10.0++

### Bug Fixes

* Fix problems when using `pp_check` on
censored models thanks to Andrew Milne. (#744)


# brms 2.10.0

### New Features
Expand Down
3 changes: 2 additions & 1 deletion R/data-helpers.R
Expand Up @@ -617,7 +617,8 @@ get_cens <- function(x, resp = NULL, newdata = NULL) {
newdata <- model.frame(x)
}
if (is.formula(bterms$adforms$cens)) {
out <- eval_rhs(bterms$adforms$cens, data = newdata)
cens <- eval_rhs(bterms$adforms$cens)
out <- unname(eval2(cens$vars$cens, newdata))
} else {
out <- NULL
}
Expand Down

0 comments on commit 7817065

Please sign in to comment.