vec2ddc | R Documentation |
A helper function for transforming a vector into a double-coded matrix.
vec2ddc(x, limits = c(NA, NA))
vec2dc(x, limits = c(NA, NA))
x |
A vector, either numeric or an ordered factor. |
limits |
Numeric vector of length two specifying the limits (or "poles") of the underlying ordinal variable. If left unspecified (the default), then the minimum and maximum in |
Double coding, also called data doubling, is a way of indicating how the values of an ordinal variable relate to the lower and upper limits of the variable. Columns -
and +
express how close each (observed) value is to these respective limits.
A matrix with column names -
and +
.
Greenacre, M. (2014) Data doubling and fuzzy coding. In: J. Blasius and M. Greenacre (eds.) Visualization and verbalization of data. Chapman and Hall/CRC, 239–253. Greenacre, M. (2017) Correspondence analysis in practice, Third edition. Boca Raton: Chapman and Hall/CRC, 201–208.
dat2ddc
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.