Effect.sdmTMB: Calculate effects

View source: R/methods.R

Effect.sdmTMBR 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 mod, Effect.default will be called.

...

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))


pbs-assess/sdmTMB documentation built on April 27, 2024, 2:05 p.m.