Learn R Programming

planningML (version 1.0.1)

featureselection: Feature selection

Description

This function selects important features from the dataset

Usage

featureselection(x = NULL, y = NULL, method = "iHCT")

Value

featureselection() returns selected features and other outcomes needed for sample size determination.

Arguments

x

a matrix of predictor variables

y

a vector of binary outcome

method

feature selection method, default is iHCT

Examples

Run this code

## 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)

Run the code above in your browser using DataLab