RemoveSize: Remove Size Variation

RemoveSizeR Documentation

Remove Size Variation

Description

Removes first principal component effect in a covariance matrix.

Usage

RemoveSize(cov.matrix)

Arguments

cov.matrix

Covariance matrix

Details

Function sets the first eigenvalue to zero.

Value

Altered covariance matrix with no variation on former first principal component

Author(s)

Diogo Melo, Guilherme Garcia

Examples

cov.matrix <- RandomMatrix(10, 1, 1, 10)
no.size.cov.matrix <- RemoveSize(cov.matrix)
eigen(cov.matrix)
eigen(no.size.cov.matrix)

lem-usp/EvolQG documentation built on April 14, 2024, 6:21 a.m.