Add priors to an existing distribution object
Source:R/add_priors.R
set_priors-BiodiversityDistribution-method.Rd
This function simply allows to add priors to an existing
distribution object. The supplied priors must be a PriorList
object created through calling priors.
Usage
# S4 method for class 'BiodiversityDistribution'
set_priors(x, priors = NULL, ...)
Arguments
- x
distribution (i.e.
BiodiversityDistribution
) object.- priors
A
PriorList
object containing multiple priors.- ...
Other parameters passed down.
Note
Alternatively priors to environmental predictors can also directly added as parameter via add_predictors
See also
Other prior:
BARTPrior()
,
BARTPriors()
,
BREGPrior()
,
BREGPriors()
,
GDBPrior()
,
GDBPriors()
,
GLMNETPrior()
,
GLMNETPriors()
,
INLAPrior()
,
INLAPriors()
,
STANPrior()
,
STANPriors()
,
XGBPrior()
,
XGBPriors()
,
get_priors()
,
priors()
,
rm_priors()
Examples
if (FALSE) { # \dontrun{
pp <- GLMNETPrior("forest")
x <- distribution(background) |>
add_priors(pp)
} # }