powered by
## S3 method for class 'oemfit' ## S3 method for class 'oemfit': predict(object, newx, s = NULL, type = c("response", "coefficients", "nonzero"), ...)
x=matrix(rnorm(100*20),100,20) y=rnorm(100) fit <- oemfit(y~x) newx=matrix(rnorm(50*20), 50, 20) pred <- predict(fit, newx)
Run the code above in your browser using DataLab