Skip to contents

A tidy coefficient plot of the fixed-effect estimates and confidence intervals from sdmTMB::tidy(), on the link scale. It summarises the fitted parameters rather than predicting over covariate ranges; for the predicted response along each term (smooths included), use conditional_effects().

Usage

plot_fixed_effects(fit, base_size = 11)

Arguments

fit

A fitted sdmTMB::sdmTMB() model.

base_size

Numeric. Base font size. Default 11.

Value

A ggplot object.

AI assistance

AI-assisted (model not recorded); not yet reviewed in full by the current model.

Author

Mikko Vihtakari

Examples

# \donttest{
mesh <- sdmTMB::make_mesh(sdmTMB::pcod, c("X", "Y"), cutoff = 20)
m <- sdmTMB::sdmTMB(
  density ~ 0 + as.factor(year) + depth_scaled, data = sdmTMB::pcod,
  time = "year", mesh = mesh, family = sdmTMB::tweedie()
)
plot_fixed_effects(m)

# }