get_linearly_independent: Check selected markers for linear independence.

View source: R/get_linearly_independent.R

get_linearly_independentR Documentation

Check selected markers for linear independence.

Description

This function checks a marker matrix selected by select_markers_for_pairscan for linear independence by checking the correlation between pairs of markers. If any are perfectly correlated, only one marker from the block of perfect correlation is kept.

Usage

get_linearly_independent(data_obj)

Arguments

data_obj

a Cape object

Value

This function returns a list with two elements. independent_markers: A matrix of the markers that are linearly independent. rejected_markers: A vector indicating which markers were removed for violating linear independence.


cape documentation built on May 20, 2022, 1:06 a.m.