get.foldid {glmnetr}R Documentation

Get foldid's with branching for cox, binomial and gaussian models

Description

Get foldid's with branching for cox, binomial and gaussian models

Usage

get.foldid(y_, event, family, folds_n, stratified = 1)

Arguments

y_

see help for cv.glmnetr() or nested.glmnetr()

event

see help for cv.glmnetr() or nested.glmnetr()

family

see help for cv.glmnetr() or nested.glmnetr()

folds_n

see help for cv.glmnetr() or nested.glmnetr()

stratified

see help for cv.glmnetr() or nested.glmnetr()

Value

A numeric vector with foldid's for use in a cross validation

See Also

factor.foldid , nested.glmnetr


[Package glmnetr version 0.5-2 Index]