make_extval: Make an external validation set

Description Usage Arguments Value

View source: R/make_extval.R

Description

make_extval takes a data frame and splits it into a data set for model tuning and training as well as another data set for external validation of the model.

Usage

1
make_extval(df, p = 0.15, seed = as.integer(Sys.time()))

Arguments

df

The data frame to split

p

The proportion of data in the split. Default is 0.15.

seed

The random seed for the data. The default is the current time as an integer, i.e., as.integer(Sys.time()).

Value

A list where the entry trn is the retained data and the entry extval is set aside for external validation.


awqx/qsarr documentation built on Oct. 2, 2021, 7:05 a.m.