Predict.Rd
A function for predictions from the results of various model fitting functions.
Predict(object, ...)
A somewhat improved version of predict
for models
fitted with objects of class StatModel-class
.
Should return a vector of the same type as the response variable specified
for fitting object
.
df <- data.frame(x = runif(10), y = rnorm(10))
mf <- dpp(linearModel, y ~ x, data = df)
Predict(fit(linearModel, mf))
#> 1 2 3 4 5 6 7 8
#> 0.4851990 0.5407908 0.5900704 0.5708362 0.4990817 0.5450765 0.5883676 0.4669835
#> 9 10
#> 0.5333932 0.5839865