print.MSTweedie: Print the results of a MSTweedie object

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function prints the number of variables included in the model and the value of the regularization parameter along the solution path.

Usage

1
2
## S3 method for class 'MSTweedie'
print(x, digits = max(3, getOption("digits") - 3))

Arguments

x

MSTweedie object.

digits

Number of significant digits in print display.

Value

A two column matrix with nlambda rows containing the number of variables included in each model with the value of the regularization parameter.

Author(s)

Simon Fontaine, Yi Yang, Bo Fan, Wei Qian and Yuwen Gu.

Maintainer: Simon Fontaine fontaines@dms.umontreal.ca

References

Fontaine, S., Yang, Y., Fan, B., Qian, W. and Gu, Y. (2018). "A Unified Approach to Sparse Tweedie Model with Big Data Applications to Multi-Source Insurance Claim Data Analysis," to be submitted.

See Also

MSTweedie

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# import package
library(MSTweedie)

# load data
data(AutoClaim)

# performs 10-folds CV with L1/Linf regularization
fit <- MSTweedie(x = AutoClaim, y=1, source=4, reg='Linf')

# prints number of selected variables along solution path
print.MSTweedie(fit)

fontaine618/MSTweedie documentation built on May 25, 2019, 5:22 p.m.