predict.cv.LDCA {BigTSP}R Documentation

prediction function for cv.LDCA

Description

prediction function for cv.LDCA

Usage

## S3 method for class 'cv.LDCA'
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

Author(s)

Xiaolin Yang, Han Liu

Examples

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")

[Package BigTSP version 1.0 Index]