Effect.sdmTMB {sdmTMB} | R Documentation |
Calculate effects
Description
Used by effects package
Usage
Effect.sdmTMB(focal.predictors, mod, ...)
Arguments
focal.predictors |
a character vector of one or more predictors in the model in any order. |
mod |
a regression model object. If no specific method exists for the class of |
... |
arguments to be passed down. |
Value
Output from effects::effect()
. Can then be plotted with with associated
plot()
method.
Examples
fit <- sdmTMB(present ~ depth_scaled, data = pcod_2011, family = binomial(),
spatial = "off")
effects::effect("depth_scaled", fit)
plot(effects::effect("depth_scaled", fit))
[Package sdmTMB version 0.6.0 Index]