predict_hpaBinary: Predict method for hpaBinary

View source: R/RcppExports.R

predict_hpaBinaryR Documentation

Predict method for hpaBinary

Description

Predict method for hpaBinary

Usage

predict_hpaBinary(object, newdata = NULL, is_prob = TRUE)

Arguments

object

Object of class "hpaBinary"

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.

Value

This function returns predicted probabilities based on hpaBinary estimation results.


hpa documentation built on May 31, 2023, 8:25 p.m.

Related to predict_hpaBinary in hpa...