predict.hpaBinary | R Documentation |
Predict method for hpaBinary
## S3 method for class 'hpaBinary'
predict(object, ..., newdata = NULL, is_prob = TRUE)
object |
Object of class "hpaBinary" |
... |
further arguments (currently ignored) |
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. |
is_prob |
logical; if TRUE (default) then function returns predicted probabilities. Otherwise latent variable (single index) estimates will be returned. |
This function returns predicted probabilities based on
hpaBinary
estimation results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.