prodata | R Documentation |
The prodata
function generates an data list for models. It additionally splits data for training and testing set by split ratio.
prodata(data, status_colname, SplitRatio = 0.75)
data |
data.frame with data to be modeled |
status_colname |
name of the column in data where the true results (true positive, expected) values are listed |
SplitRatio |
Splitting ratio; 0.75 means 75% data for training and 25% for testing, more: sample.split |
data list
model_data <- data.frame(a = c(1,2,3,4,5,6),
b = c(1,2,3,4,5,6),
s = c(1,2,3,4,5,6))
prodata(data = model_data, status_colname = "s")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.