Skip to contents

Generate cross-fitting and sample-splitting folds

Usage

generate_folds(n, V, sample_split)

Arguments

n

Total sample size

V

Number of cross-fitting folds to use

sample_split

Logical, whether or not sample-splitting is being used

Value

Named list of cross-fitting and sample-splitting folds