rowcol {PCFAM}R Documentation

Indicators for of the row and column of the original matrix

Description

This function identifies the rows and columns of elements in a matrix, e.g. the family members identified based on the correlation matrix.

Usage

rowcol(I, J, elements)

Arguments

I

The number of rows of the matrix (scalar)

J

The number of columns of the matrix (scalar)

elements

A vector of matrix element indexes

Value

whichrow

The rows of elements in the matrix

whichcol

The columns of elements in the matrix

Author(s)

Yi-Hui ZHou, Fred A. Wright

References

Computation of ancestry scores with mixed families and unrelated individuals. arXiv:1606.08416.

Examples

X <- matrix(rbinom(1000*20,2,0.4),1000,20)
X[,1]=X[,2]*0.9
X=rowscale(X)

[Package PCFAM version 1.0 Index]