Learn R Programming

LARF (version 1.3)

predict.larf: Predictions Based on the Estimated LARF

Description

Predict new outcomes based on the model fitted by larf.

Usage

"predict"(object, newCov, newTreatment, ...)

Arguments

object
an object of class larf as fitted by larf.
newCov
A matrix containing the new covariates.
newTreatment
A vector containing the new binary treatment.
...
currently not used.

Value

predicted.values
The function returns a vector of the predicted outcomes.

Details

Predicted outcomes are based on the estimated coefficients and new covariates and/or new treatment. The predicted outcomes are probabilities when the outcome is binary.

See Also

larf, larf.fit