predict.HeckSelect: Title Predict Method for HeckSelect Fits

Description Usage Arguments Value Examples

View source: R/HeckmanSelect.R

Description

Title Predict Method for HeckSelect Fits

Usage

1
2
## S3 method for class 'HeckSelect'
predict(object, newdata = NULL, na.action = na.pass, ...)

Arguments

object

a fitted object of class inheriting from "HeckSelect"

newdata

optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used.

na.action

function determining what should be done with missing values in newdata. The default is to predict NA

...

Value

vector of predicted values for P(outcome=1|selection=1)

Examples

1
2
pp <- HeckSelect(selection, outcome, data=data, allowParallel = TRUE, penalty="ALASSO", Model="AMH",crit="bic")
predict(pp)

EOgundimu300/HeckmanSelect documentation built on Feb. 5, 2022, 2:48 a.m.