BinQuant | R Documentation |
BinQuant
: a function to recode a quantitative variable
as a binned factor with (roughly) the same number of
observations per bin.
BinQuant(x, nClass = 4, stem = "", levelNames = NULL)
x |
A vector (of numbers) |
nClass |
= 4 number of bins for the recoded factor |
stem |
= ” Stem for the levels of the recoded factor |
levelNames |
(default = |
Use to create roughly) balanced factors from quantitative variables in MCA.
a vector factor with bin values.
Hervé Abdi
aFactor <- BinQuant(1:15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.