Last data update: 2014.03.03

R: print function for cv.LDCA
print.cv.LDCAR Documentation

print function for cv.LDCA

Description

print function for cv.LDCA

Usage

## S3 method for class 'cv.LDCA'
print(x, ...)

Arguments

x

cv.LDCA object

...

other arguments

Author(s)

Xiaolin Yang

Examples

library(glmnet)
x=matrix(rnorm(50*20),50,20)
y=rbinom(50,1,0.5)
cvfit=cv.LDCA(x,y,nfolds=5)
print(cvfit)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(BigTSP)
Loading required package: glmnet
Loading required package: Matrix
Loading required package: foreach
Loaded glmnet 2.0-5

Loading required package: tree
Loading required package: randomForest
randomForest 4.6-12
Type rfNews() to see new features/changes/bug fixes.
Loading required package: gbm
Loading required package: survival
Loading required package: lattice
Loading required package: splines
Loading required package: parallel
Loaded gbm 2.1.1
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BigTSP/print.cv.LDCA.Rd_%03d_medium.png", width=480, height=480)
> ### Name: print.cv.LDCA
> ### Title: print function for cv.LDCA
> ### Aliases: print.cv.LDCA
> ### Keywords: ~kwd1 ~kwd2
> 
> ### ** Examples
> 
> library(glmnet)
> x=matrix(rnorm(50*20),50,20)
> y=rbinom(50,1,0.5)
> cvfit=cv.LDCA(x,y,nfolds=5)
> print(cvfit)
Call:
cv.LDCA(X = x, y = y, nfolds = 5)
The lambda value that gives the minimum cvm:
[1] 0.18
The number of nonzero coefficients:
 s0  s1  s2  s3  s4  s5  s6  s7  s8  s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 
  0   1   1   2   2   2   7   7   7   7   7   8  10  11  14  14  15  15  16  16 
s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 s32 s33 s34 s35 s36 s37 s38 s39 
 17  17  17  17  18  21  22  23  24  25  26  28  28  29  29  30  30  30  30  30 
s40 s41 s42 s43 s44 s45 s46 s47 s48 s49 s50 s51 s52 s53 s54 s55 s56 s57 s58 s59 
 32  31  33  33  32  33  34  36  39  40  40  40  42  42  42  42  43  44  44  44 
s60 s61 s62 s63 s64 s65 s66 s67 s68 s69 s70 s71 s72 s73 s74 s75 s76 s77 s78 s79 
 44  43  43  45  46  46  46  46  46  46  46  45  45  46  47  47  47  47  48  49 
s80 s81 s82 s83 s84 s85 s86 s87 s88 s89 s90 s91 s92 s93 
 49  48  48  48  49  49  49  50  50  50  50  51  51  51 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>