powered by
cv.sprinter
Calculate prediction from a cv.sprinter object.
# S3 method for cv.sprinter predict(object, newdata, ...)
a fitted cv.sprinter object.
a design matrix of all the p main effects of some new observations of which predictions are to be made.
p
additional argument (not used here, only for S3 generic/method consistency)
The prediction of newdata by the cv.sprinter fit object.
newdata
object
# NOT RUN { n <- 100 p <- 200 x <- matrix(rnorm(n * p), n, p) y <- x[, 1] + 2 * x[, 2] - 3 * x[, 1] * x[, 2] + rnorm(n) mod <- cv.sprinter(x = x, y = y) fitted <- predict(mod, newdata = x) # }
Run the code above in your browser using DataLab