Description Usage Arguments Value Author(s) References See Also Examples
This function is a wrapper function for the predict.MSTweedie
when applied to a cv.MSTweedie
object.
1 2 |
object |
|
newx |
A list of matrices all with |
s |
Either a vector of regularization parameters (must match those of |
A list of length ntasks
of vectors corresponding to the prediction of either the reponses or the link function (see type
).
Simon Fontaine, Yi Yang, Bo Fan, Wei Qian and Yuwen Gu.
Maintainer: Simon Fontaine fontaines@dms.umontreal.ca
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.
cv.MSTweedie
,
predict.MSTweedie
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
cv <- cv.MSTweedie(x = AutoClaim, y=1, source=4, reg='Linf')
# extract coefficients at lambda.1se
head(predict.cv.MSTweedie(cv)[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.