getLWargs {crank} | R Documentation |
Get the information required for imputing missing ranks.
getLWargs(x)
x |
A matrix of ranks, usually containing missing values. |
‘getLWargs’ calculates the information required for ‘fillArows’ and ‘fillArow’ to impute the missing ranks in a matrix.
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. |
Jim Lemon
# 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)