dr_maxnet is an internal function for density-ratio estimation with Maxnet
dr_maxnet(
presence_data = NULL,
background_data = NULL,
projection_data = NULL,
formula = NULL,
regmult = 1,
regfun = maxnet.default.regularization,
addsamplestobackground = TRUE,
clamp = TRUE,
verbose = FALSE,
method,
type = c("link", "exponential", "cloglog", "logistic"),
object = NULL
)
dataframe of covariates
dataframe of covariates
dataframe of covariates
Maxnet formula to use. Default (NULL) will use the Maxnet default. This parameter is called "f" in the maxnet function, but is renamed here as using "t" and "f" as object names is frowned upon.
Maxnet regularization multiplier. Default is 1.
Maxnet regularization function. Default is the Maxnet default.
If TRUE (the default), any presences that aren't in the background will be added.
If TRUE (the default), predictions will be limited to ranges seen in the training dataset.
one of either "fit" or "predict"
Type of response required. Defaults to link, exponential, cloglog, and logistic.
fitted object returned by a dr_... function. Only needed when method = "predict"