Learn R Programming

⚠️There's a newer version (1.6.4) of this package.Take me there.

vtreat (version 0.5.16)

Simple Variable Treatment

Description

Prepares variables so that data has fewer exceptional cases, making it easier to safely use models in production. Common problems 'vtreat' defends against: Inf, NA, too many categorical values, rare categorical values, new categorical values (levels seen during application, but not during training). 'vtreat::prepare' should be used as you would use 'model.matrix'.

Copy Link

Version

Install

install.packages('vtreat')

Monthly Downloads

2,207

Version

0.5.16

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

John Mount

Last Published

September 13th, 2015

Functions in vtreat (0.5.16)

designTreatmentsC

designTreatmentsC
designTreatmentsN

designTreatmentsN
print.vtreatment

Print treatmentplan.
vorig

Original variable name from a treatmentplan$treatment item.
format.vtreatment

Display treatment plan.
catScore

return a pseudo R-squared from a 1 variable logistic regression
hold1OutMeans

of all but the i-th y. Useful for normalizing PRESS style statistics.
getNewVarNames

Return a list of new treated variable names (coresponding to optional original variable names)
vnames

New treated variable names from a treatmentplan$treatment item.
vtreat-package

vtreat: a package for simple variable treatment
pressStatOfBestLinearFit

Compute the PRESS R-squared statistic of a 1-variable linear model
prepare

prepare