Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


blorr (version 0.3.0)

blr_plot_leverage: Leverage plot

Description

Leverage plot.

Usage

blr_plot_leverage(
  model,
  point_color = "blue",
  title = "Leverage Plot",
  xaxis_title = "id",
  yaxis_title = "Leverage"
)

Arguments

model

An object of class glm.

point_color

Color of the points.

title

Title of the plot.

xaxis_title

X axis label.

yaxis_title

Y axis label.

Examples

Run this code
# NOT RUN {
model <- glm(honcomp ~ female + read + science, data = hsb2,
family = binomial(link = 'logit'))

blr_plot_leverage(model)

# }

Run the code above in your browser using DataLab