index_spliter {HMC}R Documentation

Split the sample index into n_folds many groups so that we can perform cross-fitting

Description

Split the sample index into n_folds many groups so that we can perform cross-fitting

Usage

index_spliter(array, n_folds = 5)

Arguments

array

Sample index. Usually just an array from 1 to the number of samples in one group.

n_folds

Number of splits

Value

A list indicates the sample indices in each split.


[Package HMC version 1.0 Index]