Diagnostics for confidence interval displacement and detecting ill fitted observations.

blr_residual_diagnostics(model)

Arguments

model

An object of class glm.

Value

C, CBAR, DIFDEV and DIFCHISQ.

Examples

model <- glm(honcomp ~ female + read + science, data = hsb2, family = binomial(link = 'logit')) blr_residual_diagnostics(model)
#> # A tibble: 200 x 4 #> c cbar difdev difchisq #> <dbl> <dbl> <dbl> <dbl> #> 1 0.00171 0.00168 0.175 0.0906 #> 2 0.143 0.139 4.00 5.71 #> 3 0.000996 0.000981 0.130 0.0666 #> 4 0.00902 0.00876 0.537 0.301 #> 5 0.000598 0.000592 0.110 0.0563 #> 6 0.00288 0.00280 0.209 0.108 #> 7 0.000900 0.000889 0.149 0.0769 #> 8 0.00000990 0.00000988 0.00771 0.00386 #> 9 0.0122 0.0119 0.801 0.481 #> 10 0.00216 0.00213 0.229 0.120 #> # ... with 190 more rows