outlier: Outlier history of single observation

View source: R/gauge.R

outlierR Documentation

Outlier history of single observation

Description

outlier takes a "robust2sls" object and the index of a specific observation and returns its history of classification across the different iterations contained in the "robust2sls" object.

Usage

outlier(robust2sls_object, obs)

Arguments

robust2sls_object

An object of class "robust2sls".

obs

An index (row number) of an observation

Value

outlier returns a vector that contains the 'type' value for the given observations across the different iterations. There are three possible values: 0 if the observations is judged to be an outlier, 1 if not, and -1 if any of its x, y, or z values required for estimation is missing.


robust2sls documentation built on Jan. 11, 2023, 5:13 p.m.