arg_check_leverage_test: Check arguments of 'leverage_test'

View source: R/leverage_test.R

arg_check_leverage_testR Documentation

Check arguments of leverage_test

Description

Check arguments of leverage_test

Usage

arg_check_leverage_test(model, n, ttype, threshold)

Arguments

model

A fitted model object from the lm function.

n

The number of leverage points to return. The default is all leverage points.

ttype

Threshold type. The default is "half". The other options are "2mean" and "custom". See Details.

threshold

A number between 0 and 1. Any observation with a leverage value above this number is declared a leverage point. This is automatically determined unless ttype = "custom".

Value

A vector of statistics


api2lm documentation built on July 9, 2023, 5:52 p.m.