View source: R/nuisance_parameters.R
nuisance_cf | R Documentation |
ensemble
.Cross-fitting of nuisance parameter with ensemble
.
nuisance_cf(
ml,
y,
x,
cf_mat,
cv = 5,
subset = NULL,
weights = FALSE,
path = NULL,
quiet = TRUE
)
ml |
List of methods to be used in |
y |
Vector of variable to be predicted. |
x |
Matrix of covariates. |
cf_mat |
Logical matrix with k columns of indicators representing the different folds
(for example created by |
cv |
Number of cross-validation when estimating ensemble (default 5). |
subset |
Optional logical vector if only subset of data should be used for prediction. |
weights |
If TRUE, prediction weights of the outcome nuisance extracted and saved (requires to provide a path). |
path |
Optional path to save the |
quiet |
If FALSE, ensemble estimators print method that is currently running. |
Returns a n x 1 matrix of nuisance parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.