Skip to content

Commit

Permalink
minor cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Feb 13, 2023
1 parent 7f08ea1 commit d3f8a54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/projpred.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ get_refmodel.brmsfit <- function(object, newdata = NULL, resp = NULL,
bterms <- brmsterms(formula)
if (length(bterms$dpars) > 1L && !conv_cats_dpars(family)) {
stop2("Projpred does not support distributional models.")
} else if (conv_cats_dpars(family) && length(formula$pforms)) {
}
if (conv_cats_dpars(family) && length(formula$pforms)) {
stop2("Projpred does not support category-specific formulas.")
}
if (length(bterms$nlpars) > 0L) {
Expand Down

0 comments on commit d3f8a54

Please sign in to comment.