Skip to content

Commit

Permalink
allow up to 3-way interactions in cond_effects
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjclark committed Nov 6, 2023
1 parent 798eaa4 commit c315016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/conditional_effects.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ conditional_effects.mvgam = function(x,
cond_labs <- strsplit(as.character(effects), split = ":")
}

if(any(lengths(cond_labs) > 2L)) {
stop("To display interactions of order higher than 2 ",
if(any(lengths(cond_labs) > 3L)) {
stop("To display interactions of order higher than 3 ",
"please use plot_predictions()",
call. = FALSE)
}
Expand Down

0 comments on commit c315016

Please sign in to comment.