Skip to content

Commit

Permalink
make_standata: do not print 'bernoulli' message when preparing data f…
Browse files Browse the repository at this point in the history
…or S3 methods
  • Loading branch information
paul-buerkner committed Jan 11, 2017
1 parent 8b37647 commit 7002296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/make_standata.R
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ make_standata <- function(formula, data, family = "gaussian",
if (length(standata$trials) == 1L) {
standata$trials <- rep(standata$trials, nrow(data))
}
if (max(standata$trials) == 1L) {
if (max(standata$trials) == 1L && !not4stan) {
message("Only 2 levels detected so that family 'bernoulli' ",
"might be a more efficient choice.")
}
Expand Down

0 comments on commit 7002296

Please sign in to comment.