Learn R Programming

hpa (version 1.1.3)

plot.hpaSelection: Plot hpaSelection random errors approximated density

Description

Plot hpaSelection random errors approximated density

Usage

# S3 method for hpaSelection
plot(x, y = NULL, ..., is_outcome = TRUE)

Arguments

x

Object of class "hpaSelection"

y

this parameter currently ignored

...

further arguments (currently ignored)

is_outcome

logical; if TRUE then function plots the graph for outcome equation random errors. Otherwise plot for selection equation random errors will be plotted.

Value

This function returns the list containing random error expected value errors_exp and variance errors_var estimates for selection (if is_outcome = TRUE) or outcome (if is_outcome = FALSE) equation.