createPartition
Constructs a partition vector given the number of folds and column of study design
createPartition(hM, nfolds = 10, column = NULL)
hM
: a fitted Hmsc
model objectnfolds
: number of cross-validation foldscolumn
: name or index of the column in the studyDesign
matrix, corresponding to the level for which units are splitted into foldsa vector describing the fold of each sampling unit
# Create 3 folds for a HMSC object partition = createPartition(TD$m, nfolds = 3)
Useful links