rxPredictTransform: Applies a transformation on predicted values of model.

Description Usage Arguments Details

Description

The function automatically detects whether the formula in a fitted model was log transformed, and applies the inverse, i.e. exp(pred).

Usage

1
2
rxPredictTransform(modelObject, data, logModel = isLogFormula(modelObject),
  asVector = TRUE, ...)

Arguments

modelObject

object returned from a call to rxLinMod, rxLogit, or rxGlm. Objects with multiple dependent variables are not supported in rxPredict.

data

frame or XDF. New data to score.

logModel

Logical. If TRUE, applies exponential transformation, i.e. exp(pred)

asVector

Ignored

...

Passed to rxPredict

Details

At the moment, always returns a vector, rather than a column in a data frame or XDF.


RevoEnhancements/RevoEnhancements documentation built on May 9, 2019, 9:46 a.m.