make_folds: Create Folds for Cross-Fitting

View source: R/utils.R

make_foldsR Documentation

Create Folds for Cross-Fitting

Description

Create Folds for Cross-Fitting

Usage

make_folds(y, V = 2, stratified = FALSE, C = NULL, probs = rep(1/V, V))

Arguments

y

the outcome

V

the number of folds

stratified

should the folds be stratified based on the outcome?

C

a vector indicating whether or not the observation is fully observed; 1 denotes yes, 0 denotes no

probs

vector of proportions for each fold number

Value

a vector of folds


bdwilliamson/nova documentation built on Feb. 1, 2024, 10:04 p.m.