Learn R Programming

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

vtreat (version 0.5.18)

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.18

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

John Mount

Last Published

October 7th, 2015

Functions in vtreat (0.5.18)

vnames

New treated variable names from a treatmentplan$treatment item.
vorig

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

Display treatment plan.
designTreatmentsN

designTreatmentsN
catScore

return a pseudo R-squared from a 1 variable logistic regression
vtreat-package

vtreat: a package for simple variable treatment
prepare

prepare
print.vtreatment

Print treatmentplan.
pressStatOfBestLinearFit

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

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

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

designTreatmentsC