Description Usage Arguments Value Examples
predict.swReg
returns predictions for a given swReg model
1 2 |
object |
an R object resulting from application of |
newdata |
a dataframe or matrix with predictor variable values. |
... |
currently not used. |
A vector of predictions for newdata
.
1 2 3 4 5 6 7 8 | ## Example using Boston Housing data:
library(MASS)
X <- as.matrix(Boston[1:400,-14])
Y <- Boston$medv[1:400]
swReg1 <- swReg(X, Y, stepsize = .01)
swReg2 <- swReg(X, Y, stepsize = .01, standardizeY = FALSE)
plot.swReg(swReg1, newdata = Boston[401:502,-14])
plot.swReg(swReg2, newdata = Boston[401:502,-14])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.