featureselection {planningML} | R Documentation |
Feature selection
Description
This function selects important features from the dataset
Usage
featureselection(x = NULL, y = NULL, method = "iHCT")
Arguments
x |
a matrix of predictor variables |
y |
a vector of binary outcome |
method |
feature selection method, default is iHCT |
Value
featureselection()
returns selected features and other outcomes needed for sample size determination.
Examples
## 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)
[Package planningML version 1.0.1 Index]