Learn R Programming

aggTrees (version 2.1.0)

sample_split: Sample Splitting

Description

Splits the sample into training and honest subsamples.

Usage

sample_split(n, training_frac = 0.5)

Value

A list storing the indexes for the two different subsamples.

Arguments

n

Size of the sample to be split.

training_frac

Fraction of units for the training sample.

Author

Riccardo Di Francesco