.smart.prediction
from
smartpredenv
(R)
or
frame 1 (S-PLUS).get.smart.prediction()
.smart.prediction
from
smartpredenv
(R)
or
frame 1 (S-PLUS).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.get.smart
,
lm
.# Put at the end of lm
fit$smart <- get.smart.prediction()
Run the code above in your browser using DataLab