Skip to contents

This is a helper function to specify several XGBInteractionPrior objects from a list of variable groups.

Usage

XGBInteractionPriors(groups, ...)

# S4 method for class 'list'
XGBInteractionPriors(groups, ...)

Arguments

groups

A list of character vectors. Each vector is one allowed interaction group.

...

Variables passed on to prior object.

Value

A named list of Prior objects.

Examples

priors <- XGBInteractionPriors(list(c("forest", "temperature"), c("forest", "rainfall")))
length(priors)
#> [1] 2