View source: R/nuisance_parameters.R
| nuisance_m | R Documentation | 
Cross-fitted ensemble prediction of outcome regression nuisance parameter.
nuisance_m(
  ml,
  y,
  w_mat,
  x,
  cf_mat,
  cv = 5,
  weights = FALSE,
  path = NULL,
  quiet = TRUE
)
| ml | List of methods to be used in  | 
| y | Numerical vector containing the outcome variable. | 
| w_mat | Logical matrix of treatment indicators (n x T+1). For example created by  | 
| x | Covariate matrix. | 
| 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). | 
| 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 n x T+1 matrix with each columns containing the predicted outcome for the treatment corresponding to w_mat.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.