This function both fits rangebagging models Drake2015-sbS4DM and projects those distributions to new covariates.
pnp_rangebagging(data, method, object = NULL, v = 100, d = 2, p = 0.5)
dataframe of covariates
one of either "fit" or "predict"
fitted object returned by a pnp_... function. Only needed when method = "predict"
Integer. Number of votes to use in the aggregation, default is 100.
Integer. Number of dimensions (i.e. covariates) to use in aggregations, default is 2.
Numeric. Fraction of observations (i.e. occurrences) to use in each replicate aggregation. Default is 0.5
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.