Learn R Programming

OptHoldoutSize (version 0.1.0.1)

split_data: Split data

Description

Split data into holdout and intervention sets

Usage

split_data(X, frac)

Value

Vector of TRUE/FALSE values (randomised) with proportion frac as TRUE

Arguments

X

Matrix of observations

frac

Fraction of observations to use for the training set

Examples

Run this code

# See examples for model_predict

Run the code above in your browser using DataLab