View source: R/utils_effects.R
prep_cf_mat | R Documentation |
Creates matrix of binary cross-fitting fold indicators (n x # cross-folds)
prep_cf_mat(n, cf, w_mat = NULL, cl = NULL)
n |
Number of observations. |
cf |
Number of cross-fitting folds. |
w_mat |
Optional logical matrix of treatment indicators (n x T+1). For example created by |
cl |
Optional vector of cluster variable if cross-fitting should account for clusters. |
Logical matrix of cross-fitting folds (n x # folds).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.