arg_check_leverage_test {api2lm}R 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


[Package api2lm version 0.2 Index]