Learn R Programming

asremlPlus (version 4.4.48)

permute.to.zero.lowertri: Permutes a square matrix until all the lower triangular elements are zero.

Description

Permutes a square matrix until all the lower triangular elements are zero.

Usage

permute.to.zero.lowertri(x)

Value

A square matrix.

Arguments

x

A square matrix of order n with at least n*(n-1)/2 zero elements.

Author

Chris Brien

See Also

permute.square

Examples

Run this code
  terms.marginality <-  matrix(c(1,0,0,0,0,  0,1,0,0,0, 0,1,1,0,0, 
                                 1,1,1,1,0, 1,1,1,1,1), nrow=5)
  terms.marginality <- permute.to.zero.lowertri(terms.marginality)

Run the code above in your browser using DataLab