Learn R Programming

crank (version 1.1-2)

getLWargs: 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.

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.

Details

getLWargs calculates the information required for fillArows and fillArow to impute the missing ranks in a matrix.

See Also

listBuilder

Examples

Run this code
# 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