predict_hpaSelection | R Documentation |
This function predicts outcome and selection equation values from hpaSelection model.
predict_hpaSelection(
object,
newdata = NULL,
method = "HPA",
is_cond = TRUE,
is_outcome = TRUE
)
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 |
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.
This function returns the list which structure depends
on method
, is_probit
and is_outcome
values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.