Learn R Programming

VGAM (version 0.8-4.1)

get.smart.prediction: Retrieves ``.smart.prediction''

Description

Retrieves .smart.prediction from smartpredenv (R) or frame 1 (S-PLUS).

Usage

get.smart.prediction()

Arguments

Value

  • Returns with the list .smart.prediction from smartpredenv (R) or frame 1 (S-PLUS).

Details

A smart modelling function such as lm allows smart functions such as bs to write to a data structure called .smart.prediction in smartpredenv (R) or frame 1 (S-PLUS). At the end of fitting, get.smart.prediction retrieves this data structure. It is then attached to the object, and used for prediction later.

See Also

get.smart, lm.

Examples

Run this code
# Put at the end of lm
fit$smart <- get.smart.prediction()

Run the code above in your browser using DataLab