make_kfold: Turn folds from 2K-fold cross-fitting into individual K-fold...

View source: R/utils.R

make_kfoldR Documentation

Turn folds from 2K-fold cross-fitting into individual K-fold folds

Description

Turn folds from 2K-fold cross-fitting into individual K-fold folds

Usage

make_kfold(
  cross_fitting_folds,
  sample_splitting_folds = rep(1, length(unique(cross_fitting_folds))),
  C = rep(1, length(cross_fitting_folds))
)

Arguments

cross_fitting_folds

the vector of cross-fitting folds

sample_splitting_folds

the sample splitting folds

C

vector of whether or not we measured the observation in phase 2

Value

the two sets of testing folds for K-fold cross-fitting


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