Skip to contents

evaluate_nnls.mat2 function solves nonnegative least squares problems. It requires two matrices, one ('donors') refers to the source groups, the second ('recipients') refers to the admixed groups

Usage

evaluate_nnls.mat2(donors, recipients)

Arguments

donors

Matrix with reference groups

recipients

Matrix with target groups

Value

Returns matrix describing the admixed groups as a mixture of the source groups, along with the residuals

Examples

if (FALSE) {
nnls.mat2(donors = my_source_individuals_matrix,recipients = my_admixed_individuals_matrix)
}