View source: R/mainFunctions.R
predict.qic.select | R Documentation |
Predictions from a qic.select object
## S3 method for class 'qic.select'
predict(object, newx, sort = FALSE, ...)
object |
qic.select object |
newx |
Data matrix to make predictions from. |
sort |
If there are crossing quantiles the predictions will be sorted to avoid this issue. |
... |
No additional parameters are used but this is needed for how R handles predict functions. |
A matrix of predicted values.
Ben Sherwood, ben.sherwood@ku.edu
x <- matrix(runif(800),ncol=8)
y <- 1 + x[,1] + x[,8] + (1+.5*x[,3])*rnorm(100)
m1 <- rq.pen(x,y,tau=c(.25,.75))
q1 <- qic.select(m1)
newx <- matrix(runif(80),ncol=8)
preds <- predict(q1,newx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.