Predict method for hpaBinary
predict_hpaBinary(object, newdata = NULL, is_prob = TRUE)
This function returns predicted probabilities
based on hpaBinary
estimation results.
Object of class "hpaBinary"
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.
logical; if TRUE (default) then function returns predicted probabilities. Otherwise latent variable (single index) estimates will be returned.