Skip to contents

Extracts residuals from a fitted heckmanGE model for a specified model component.

Usage

# S3 method for class 'heckmanGE'
residuals(object, part = c("selection", "outcome"), ...)

Arguments

object

An object of class heckmanGE. This object should be a fitted model from which residuals are to be extracted.

part

A character vector specifying which model component's residuals to return: either 'selection' or 'outcome'. Defaults to 'outcome'.

...

Additional arguments passed to or from other methods. These are not used in this method but must be included to match the generic method signature.

Value

A vector of residuals extracted from the specified part of the heckmanGE model.