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

Description Usage Arguments Author(s) Examples

View source: R/LDCA.R

Description

prediction function for cv.LDCA

Usage

1
2
## 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

1
2
3
4
5
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")

BigTSP documentation built on May 2, 2019, 6:09 a.m.