Learn R Programming

idm (version 1.3.1)

transform_z: Computes indicator and standardized residual matrices

Description

This function returns the indicator (or dummy) matrix and the standardized residual matrix of a given data matrix.

Usage

transform_z(data,is.weight=TRUE,is.exact=TRUE,r=1,c=1)

Arguments

data
Matrix or data frame
is.weight
Logical indicating whether computations are based on user-defined weights/masses
is.exact
Logical indicating whether the computations mimic the case when 'exact' or 'live' MCA is applied
r
Row masses; applicable only when is.weight = TRUE
c
Column masses; applicable only when is.weight = TRUE

Value

  • dZIndicator matrix
  • QNumber of variables
  • JNumber of variable attributes
  • rRow masses
  • cColumn masses
  • SZStandardized residual matrix

Examples

Run this code
data(women, package="idm")
outZ = transform_z(women[,c(1:7)],is.weight=FALSE)

Run the code above in your browser using DataLab