Learn R Programming

BigTSP (version 1.0)

predict.cv.LDCA: prediction function for cv.LDCA

Description

prediction function for cv.LDCA

Usage

"predict"(object, newx, s = c("lambda.lse", "lambda.min"), ...)

Arguments

object
a cv.LDCA object
newx
new data matrix
s
lambda value at which the prediction is returned.
...
other arguments

Examples

Run this code
library(glmnet)
x=matrix(rnorm(50*20),50,20)
y=rbinom(50,1,0.5)
cvfit=cv.LDCA(x,y,nfolds=5)
predict(cvfit,x[1:10,],s="lambda.min")

Run the code above in your browser using DataLab