recodquant function

Recoding of the quantitative data matrix

Recoding of the quantitative data matrix

Recoding of the quantitative data matrix.

recodquant(X)

Arguments

  • X: the quantitative data matrix.

Returns

  • Z: the standardized quantitative data matrix (centered and reduced with the standard deviations.)

  • g: the means of the columns of X

  • s: the standard deviations of the columns of X (population version with 1/n)

  • Xcod: The quantitative matrix X with missing values replaced with the column mean values.

Examples

data(decathlon) X <- decathlon[1:5,1:5] X[1,2] <- NA X[2,3] <-NA rec <- recodquant(X)
  • Maintainer: Marie Chavent
  • License: GPL (>= 2.0)
  • Last published: 2017-10-23

Useful links