GetM1 function

Get reduced matrix (M1) function

Get reduced matrix (M1) function

This function reduce matrix provided by the user deleting missing categories, those j where sum(datatable[j,]) = sum(datatable[,j]) = 0. Also provide a list of the categories deleted and provides the new size of the problem

GetM1(datatable) ## S3 method for class 'GetM1' print(x, ...)

Arguments

  • datatable: Matrix. Expected to be square matrix with at least 2 rows (columns), non negative values and at least an element different of zero.
  • x: List produced by GetM1
  • ...: Other print options

Returns

NULL

Examples

GetM1(matrix(c(1,2,0,3,4,0,0,0,0),3,3))
  • Maintainer: Antonio Rodriguez
  • License: GPL-3
  • Last published: 2019-12-09

Useful links