Accessory Function for Sample Splitting

Description

Randomly partition a dataset into a training set and a test set.

Usage

1
randpart(dataset, fract)

Arguments

dataset

a dataset for splitting.

fract

the proportion of observations to be designated to the training set.

Value

Returns a list containing the training set and test set.

Note

This function is not designed to be called directly, but acts within splitval