Learn R Programming

hpa (version 1.0.1)

predict.hpaBinary: Predict method for hpaBinary

Description

Predict method for hpaBinary

Usage

# S3 method for hpaBinary
predict(object, ..., newdata = NULL,
  is_prob = TRUE)

Arguments

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 dataframe (matrix) used.

is_prob

logical; if TRUE (default) then function returns predicted probabilities. Otherwise latent variable (single index) estimates will be returned.

Value

This function returns predicted probabilities based on hpaBinary estimation results.