Skip to contents

The influence metric indicates how much of a standardisation effect the model is having.

Usage

plot_influ(fit, year = "fishing_year", fill = "purple", hurdle = FALSE)

Arguments

fit

An object of class brmsfit.

year

the year variable label.

fill

the colour to use in the plot.

hurdle

if a hurdle model then use the hurdle

Value

a ggplot object.

See also

Author

Darcy Webber darcy@quantifish.co.nz

Examples

if (FALSE) {
data(epilepsy)
epilepsy$Age <- factor(epilepsy$Age)
fit1 <- brm(count ~ Age + (1|patient), data = epilepsy, family = poisson(), iter = 100)
summary(fit1)
plot_influ(fit = fit1, year = "Age")
}