View source: R/approach_regression_surrogate.R
regression.surrogate_aug_data | R Documentation |
Augment the training data and the explicands
regression.surrogate_aug_data(
internal,
x,
y_hat = NULL,
index_features = NULL,
augment_masks_as_factor = FALSE,
augment_include_grand = FALSE,
augment_add_id_coal = FALSE,
augment_comb_prob = NULL,
augment_weights = NULL
)
internal |
List.
Holds all parameters, data, functions and computed objects used within |
x |
Data.table containing the training data. |
y_hat |
Vector of numerics (optional) containing the predicted responses for the observations in |
index_features |
Array of integers (optional) containing which coalitions to consider. Must be provided if
|
augment_masks_as_factor |
Logical (default is |
augment_include_grand |
Logical (default is |
augment_add_id_coal |
Logical (default is |
augment_comb_prob |
Array of numerics (default is |
augment_weights |
String (optional). Specifying which type of weights to add to the observations.
If |
A data.table containing the augmented data.
Lars Henry Berge Olsen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.