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

permute.to.zero.lowertriR Documentation

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)

Arguments

x

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

Value

A square matrix.

Author(s)

Chris Brien

See Also

permute.square

Examples

  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)

asremlPlus documentation built on Oct. 27, 2024, 5:06 p.m.