split_data {OptHoldoutSize} | R Documentation |
Split data
Description
Split data into holdout and intervention sets
Usage
split_data(X, frac)
Arguments
X |
Matrix of observations |
frac |
Fraction of observations to use for the training set |
Value
Vector of TRUE/FALSE values (randomised) with proportion frac
as TRUE
Examples
# See examples for model_predict
[Package OptHoldoutSize version 0.1.0.0 Index]