Skip to contents

Print the cv.ptLasso object.

Usage

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

Arguments

x

fitted "cv.ptLasso" object.

...

other arguments to pass to the print function.

See also

ptLasso, cv.ptLasso and predict.cv.ptLasso.

Author

Erin Craig and Rob Tibshirani
Maintainer: Erin Craig <erincr@stanford.edu>

Examples

out = gaussian.example.data()
x = out$x; y=out$y; groups = out$group;

cvfit = cv.ptLasso(x, y, groups = groups, family = "gaussian", type.measure = "mse")
print(cvfit)
#> 
#> Call:  
#> cv.ptLasso(x = x, y = y, groups = groups, family = "gaussian",  
#>     type.measure = "mse", use.case = "inputGroups", group.intercepts = TRUE) 
#> 
#> 
#> 
#> type.measure:  mse 
#> 
#> 
#>            alpha overall  mean wtdMean group_1 group_2 group_3 group_4 group_5
#> Overall            685.1 685.1   685.1   665.6   543.7   555.4   646.8  1014.1
#> Pretrain     0.0   555.3 555.3   555.3   530.0   516.4   603.9   543.7   582.3
#> Pretrain     0.1   521.9 521.9   521.9   499.5   492.5   560.5   517.9   539.0
#> Pretrain     0.2   526.3 526.3   526.3   489.2   484.7   584.2   511.8   561.8
#> Pretrain     0.3   514.2 514.2   514.2   485.8   500.8   531.1   523.8   529.4
#> Pretrain     0.4   519.8 519.8   519.8   467.7   487.7   570.6   505.2   567.7
#> Pretrain     0.5   522.9 522.9   522.9   465.3   499.8   567.7   517.4   564.3
#> Pretrain     0.6   518.0 518.0   518.0   459.9   504.8   563.9   515.7   545.7
#> Pretrain     0.7   545.7 545.7   545.7   479.2   552.6   601.5   553.7   541.2
#> Pretrain     0.8   545.6 545.6   545.6   500.8   539.2   584.8   536.7   566.7
#> Pretrain     0.9   538.9 538.9   538.9   516.5   535.4   571.6   515.7   555.1
#> Pretrain     1.0   579.8 579.8   579.8   554.9   587.5   638.8   541.7   575.9
#> Individual         579.8 579.8   579.8   554.9   587.5   638.8   541.7   575.9
#> 
#> alphahat (fixed) = 0.3
#> alphahat (varying):
#> group_1 group_2 group_3 group_4 group_5 
#>     0.6     0.2     0.3     0.4     0.3