getLWargs {crank} | R Documentation |
Get the information about a matrix of ranks.
Description
Get the information required for imputing missing ranks.
Usage
getLWargs(x)
Arguments
x |
A matrix of ranks, usually containing missing values. |
Details
‘getLWargs’ calculates the information required for ‘fillArows’ and ‘fillArow’ to impute the missing ranks in a matrix.
Value
A list containing the following:
ranksums |
The column sums of the complete rows of the matrix. |
Arows |
The indices of the row(s) with the minimal number of missing values. |
nArows |
The number of Arows. |
Brows |
The indices of the complete rows. |
Author(s)
Jim Lemon
See Also
Examples
# The first example matrix from Lim and Wolfe (2002)
lwmat<-matrix(c(3,1,2,4,NA,2,1,NA,2,NA,1,NA),nrow=3,byrow=TRUE)
getLWargs(lwmat)
[Package crank version 1.1-2 Index]