balancedFolds: Function producing stratified/ balanced folds for cross...

Description Usage Arguments Value Author(s) References See Also

View source: R/balancedFolds.R

Description

Get balanced folds for cross validation, which are used for tuning penalization parameters

Usage

1
balancedFolds(class.column.factor, cross.outer) 

Arguments

class.column.factor

class labels of length n

cross.outer

number of folds

Value

permutated.cut

vector of length n, indicating the fold belongs to

model

model list

  • alpha - optimal alpha

  • lambda - optimal lambda

  • nfolds - cross-validation's folds

  • cvreg - cv.glmnet object for optimal alpha

  • fit - glmnet object for optimal alpha and optimal lambda

Author(s)

Natalia Becker natalia.becker at dkfz.de

References

Sill M., Hielscher T., Becker N. and Zucknick M. (2014), c060: Extended Inference with Lasso and Elastic-Net Regularized Cox and Generalized Linear Models, Journal of Statistical Software, Volume 62(5), pages 1–22. http://www.jstatsoft.org/v62/i05/

See Also

EPSGO


c060 documentation built on May 31, 2017, 1:47 a.m.

Search within the c060 package
Search all R packages, documentation and source code