Effect.fit_model: Adapts package 'effects'

View source: R/effects.R

Effect.fit_modelR Documentation

Adapts package effects

Description

Calculate effects for plotting

Usage

Effect.fit_model(
  focal.predictors,
  mod,
  which_formula = "X1",
  pad_values = c(1),
  category_number = NULL,
  ...
)

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.

which_formula

which formula to use e.g., "X1"

category_number

which category codec_i to use when plotting density covariates

If getting the error non-conformable arguments, consider exploring pad_values The error arises in when constructing the linear predictor without an intercept, and the default pad_values = 1 attempts to insert a dummy intercept with estimate and SE equal to zero.

...

arguments to be passed down.


James-Thorson/VAST documentation built on Jan. 31, 2024, 12:13 p.m.