powered by
Get the information required for imputing missing ranks.
getLWargs(x)
A matrix of ranks, usually containing missing values.
A list containing the following:
The column sums of the complete rows of the matrix.
The indices of the row(s) with the minimal number of missing values.
The number of Arows.
The indices of the complete rows.
getLWargs calculates the information required for fillArows and fillArow to impute the missing ranks in a matrix.
listBuilder
# NOT RUN { # 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) # }
Run the code above in your browser using DataLab