Learn R Programming

predcomps (version 0.1)

GetSingleInputPredComps: GetSingleInputPredComps

Description

makes predictive comparison summaries (APC and impact, absolute and signed) by forming an data frame of pairs with appropriate weights and then calling `ComputeApcFromPairs`. Only works fore continuous inputs right now

Usage

GetSingleInputPredComps(predictionFunction, X, u, v, ...)

Arguments

predictionFunction
this could be a function (which takes data frame and makes returns a vector of predictions) or an object of class `lm`, `glm`, or `randomForest`
X
a data frame with all inputs
u
a string naming the input of interest
v
a string naming the other inputs
...
other arguments to be passed to `GetPairs`

Value

a list with: signed (the usual Apc) and absolute (Apc applied to the absolute value of the differences)