powered by
The function finds all single cells under a relational model. Such cells appear as the only positive entries in their row and column in the model matrix.
single.cells(ModelMatrix)
a model matrix of a relational model.
the row and column indices of the single cells.
# NOT RUN { G = matrix(c( 2,0,0,0,0, 0,1,1,0,0, 0,0,1,1,1), byrow=TRUE, nrow=3) ## a given matrix single.cells(G) # }
Run the code above in your browser using DataLab