Description Usage Arguments Examples
View source: R/cc.restrictor.R
This function makes a list with three values FORMULA, TRAIN data set and TEST data set. Very useful for regression modelling.
1 | cc.restrictor(outcome, predictors, db, single.set = F)
|
outcome |
is the character string specifying the outcome variable. This variable has to be a part of the database (db) |
predictors |
Predictors are the known variables, based on which we want to conduct our predicting. |
db |
The database on which we should perform the operations |
single.set |
is a logical if TRUE then the function will provide only one training set, if FALSE if will return both training set and a test set. |
1 | complete.cases <- cc.restrictor("ANAscore",c("d_age","b_sex"),data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.