boot.factor.foldid {glmnetr} | R Documentation |
Generate foldid's by 0/1 factor for bootstrap like samples where unique option between 0 and 1
boot.factor.foldid(event, fraction)
event |
the outcome variable in a vector identifying the different potential levels of the outcome |
fraction |
the fraction of the whole sample included in the bootstratp sample |
foldid's in a vector the same length as event