featureselection {planningML} | R Documentation |
This function selects important features from the dataset
featureselection(x = NULL, y = NULL, method = "iHCT")
x |
a matrix of predictor variables |
y |
a vector of binary outcome |
method |
feature selection method, default is iHCT |
featureselection()
returns selected features and other outcomes needed for sample size determination.
## load data
#pilot.data = readRDS(system.file("extdata", "pilotdata.rds", package = "planningML"))
#x = pilot.data[,-ncol(pilot.data)]
#y = pilot.data$DEPRESSION
## select important features
#features = featureselection(x = x, y = y)
#summary(features)