NormalizePredictors: Center and normalize predictors for linear dimensionality...

View source: R/puddlr.R

NormalizePredictorsR Documentation

Center and normalize predictors for linear dimensionality reduction. Also prunes all observations where NA values are identified for either the response or any of the predictors.

Description

Center and normalize predictors for linear dimensionality reduction. Also prunes all observations where NA values are identified for either the response or any of the predictors.

Usage

NormalizePredictors(puddlr, scale = TRUE, center = TRUE, max.na.ratio = 0.5)

Arguments

puddlr

A puddlr object to normalize in-place

scale

whether to scale predictor matrix

center

whether to center predictor matrix

max.na.ratio

exclude predictors where the percent of NA observations is > max.na.ratio. Default = 0.5.

Value

A normalized puddlr object


rahuldhodapkar/puddlr documentation built on May 28, 2022, 12:53 p.m.