topten: Building a Model with Top Ten Feautures

Description Usage Arguments Details Value Author(s) See Also

View source: R/topten.R

Description

This function develops a prediction algorithm based on the top 10 features in 'x' that are most predictive of 'y'.

Usage

1
topten(x, y)

Arguments

x

a n x p matrix of n observations and p predictors

y

a vector of length n representing the response

Details

This function runs a univariate regression of y on each predictor in x and calculates a p-value indicating the significance of the association. The final set of 10 predictors is taken from 10 smallest p-values.

Value

a vector of coefficients from the final model with top 10 features

Author(s)

Jean Marie Cimula

See Also

lm


jmcimula/lmR documentation built on May 19, 2019, 1:52 p.m.