Probabilities: Probabilities

View source: R/probabilities.R

ProbabilitiesR Documentation

Probabilities

Description

Estimates the probability of group membership for the data passed into newdata or the data used to fit the model if newdata is not specified. Intended to be used for the classifiers in the packages flipRegression, flipMultivariates and flipTrees.

Usage

Probabilities(object, newdata = NULL, ...)

Arguments

object

A CART, MachineLearning, MachineLearningEnsemble or Regression object.

newdata

Optionally, a data frame including the variables used to fit the model. If not provided, the object$model is used instead.

...

Optional arguments to pass to predict or other functions.

Value

A matrix of predicted probabilities for the observation to belong to each class label.


Displayr/flipData documentation built on March 2, 2024, 3:49 a.m.