pnp_rangebagging: Internal function for rangebagging in plug-and-play SDMs.

View source: R/pnp_rangebagging.R

pnp_rangebaggingR Documentation

Internal function for rangebagging in plug-and-play SDMs.

Description

This function both fits rangebagging models \insertCiteDrake2015-sbS4DM and projects those distributions to new covariates.

Usage

pnp_rangebagging(data, method, object = NULL, v = 100, d = 2, p = 0.5)

Arguments

data

dataframe of covariates

method

one of either "fit" or "predict"

object

fitted object returned by a pnp_... function. Only needed when method = "predict"

v

Integer. Number of votes to use in the aggregation, default is 100.

d

Integer. Number of dimensions (i.e. covariates) to use in aggregations, default is 2.

p

Numeric. Fraction of observations (i.e. occurrences) to use in each replicate aggregation. Default is 0.5

Details

For fitting, an object is not required (and will be ignored). For prediction, parameters v,p,and d are not needed and will be ignored.

References

\insertAllCited

bmaitner/pbsdm documentation built on Feb. 8, 2025, 2:27 p.m.