recodquant: Recoding of the quantitative data matrix

Description Usage Arguments Value Examples

View source: R/recodquant.R

Description

Recoding of the quantitative data matrix.

Usage

1

Arguments

X

the quantitative data matrix.

Value

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

1
2
3
4
5
data(decathlon)
X <- decathlon[1:5,1:5]
X[1,2] <- NA
X[2,3] <-NA
rec <- recodquant(X)

PCAmixdata documentation built on Nov. 17, 2017, 7:38 a.m.