Given an environmental data set, fitted models, and a directory to output plots, this function generates response curves for each predictor in the model. The response curves depict the predicted change in probability of presence as a function of the environmental predictor while holding all other predictors constant at their mean values.
get_response_curves(
env_bg,
env_pres,
pnp_model,
n.int = 1000,
envMeans = NULL,
envSDs = NULL
)
This function generates a set of marginal predictions for each environmental variable, holding other variables constant
Object returned by get_env_bg
Object returned by get_env_pres
Object returned by fit_plug_and_play
or fit_density_ratio
Number of points along which to calculate the response curve
A vector of means for each environmental predictor in the dataset. (not used)
A vector of standard deviations for each environmental predictor in the dataset.(not used)
Cory Merow, modified by Brian Maitner