project_plug_and_play: Projects fitted plug-and-play distribution models onto new...

View source: R/project_plug_and_play.R

project_plug_and_playR Documentation

Projects fitted plug-and-play distribution models onto new covariates.

Description

This function projects fitted plug-and-play species distribution models onto new covariates.

Usage

project_plug_and_play(pnp_model, data, bg_zero_ror_zero = TRUE)

Arguments

pnp_model

A fitted plug-and-play model produced by fit_plug_and_play

data

covariate data

bg_zero_ror_zero

Logical. Default = TRUE. If the background is zero, set the ROR to zero. This will prevent NaN and Inf values which would otherwise interfere with AUC calculations.

Value

A vector of relative occurrence rates evaluated at the covariates supplied in the data object.

Note

The tsearchn function underlying rangebagging seems to fail sometimes with very uneven predictors. Rescaling helps.


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