Cooks: Cooks

Description Usage Arguments Value Examples

View source: R/cooks.R

Description

Calculate the Cook's distance, a summary of subject i' influence on beta estimates overall. Use this function with 'linear_model'.

Usage

1
Cooks(mod)

Arguments

mod

the fitted linear regression

Value

a vector of each observation's Cook's distance

Examples

1
2
mod <- linear_model(Depression ~ Fatalism + R_E + Sex, Patients)
Cooks(mod)

YuxuanChen0824/R_package documentation built on Dec. 18, 2021, 8:24 p.m.