plot_influ: Plot the influence metric for all variables in a model

View source: R/plot-influ.R

plot_influR Documentation

Plot the influence metric for all variables in a model

Description

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

Usage

plot_influ(fit, year = NULL, 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

get_influ

Examples

## Not run: 
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")

## End(Not run)

quantifish/influ2 documentation built on Dec. 14, 2024, 5:10 a.m.