GetSingleInputPredComps: GetSingleInputPredComps

Description Usage Arguments Value

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

1
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)


dchudz/predcomps documentation built on May 15, 2019, 1:48 a.m.