Get foldid's when id variable is used to identify groups of dependent sampling units. With branching for cox, binomial and gaussian models
Useful links