corPatternProj: Estimating correlation between an allelic distribution...

View source: R/func__corPatternProj.R

corPatternProjR Documentation

Estimating correlation between an allelic distribution pattern and each projection vector.

Description

This function computes a point-biserial correlation coefficient between each pattern and each projection vector. It works in a similar way as the function corCladeProj. The point-biserial correlation coefficient is a special case of the well-known Pearson correlation coefficient.

Usage

corPatternProj(pat.mat, proj.mat)

Arguments

pat.mat

A uncentred pattern matrix, which is the element alleles$B in the output of the function lmm or findPhysLink.

proj.mat

A projection matrix, which is the element struc$C$C in the output of the function lmm or findPhysLink.

Author(s)

Yu Wan (wanyuac@126.com)

Examples

a <- lmm(...)
r <- corPatternProj(pat.mat = a$alleles$B, proj.mat = a$struc$C$C)


wanyuac/GeneMates documentation built on Aug. 12, 2022, 7:37 a.m.