Skip to contents

Respects na.action: when the model was fit with na.exclude, NAs are reinserted at the omitted row positions so the result aligns with the original data frame (matching base R's residuals.lm).

Usage

# S3 method for class 'ivreg2'
residuals(object, ...)

Arguments

object

An object of class "ivreg2".

...

Additional arguments (ignored).

Value

Numeric vector of residuals.