predict_hpaSelection {hpa} | R Documentation |
Predict outcome and selection equation values from hpaSelection model
Description
This function predicts outcome and selection equation values from hpaSelection model.
Usage
predict_hpaSelection(
object,
newdata = NULL,
method = "HPA",
is_cond = TRUE,
is_outcome = TRUE
)
Arguments
object |
Object of class "hpaSelection" |
newdata |
An optional data frame (for hpaBinary and hpaSelection) or numeric matrix (for hpaML) in which to look for variables with which to predict. If omitted, the original data frame (matrix) used. |
method |
string value indicating prediction method based on hermite polynomial approximation "HPA" or Newey method "Newey". |
is_cond |
logical; if |
is_outcome |
logical; if |
Details
Note that Newey method can't predict conditional outcomes for zero selection equation value. Conditional probabilities for selection equation could be estimated only when dependent variable from outcome equation is observable.
Value
This function returns the list which structure depends
on method
, is_probit
and is_outcome
values.