Learn R Programming

cape (version 2.0.2)

select.eigentraits: Select a subset of the eigentraits for further analysis

Description

This function selects the specified eigentraits for further analysis. After the singular value decomposition (SVD) of multiple traits by get.eigentraits, a subset of the eigentraits, for example the first two, may carry useful information, while others may be dominated by noise. In this case, this function can be used to select the first two eigentraits for use in the analysis.

Usage

select.eigentraits(data.obj, traits.which = c(1, 2))

Arguments

data.obj
The object in which all results are stored. See read.population.
traits.which
A numeric vector indicating which eigentraits should be retained for further analysis.

Value

This function returns the data object with only the selected eigentraits.

Details

Before the selection of eigentraits, the eigentraits should be examined using plotSVD

References

Carter, G. W., Hays, M., Sherman, A., & Galitski, T. (2012). Use of pleiotropy to model genetic interactions in a population. PLoS genetics, 8(10), e1003010. doi:10.1371/journal.pgen.1003010

See Also

get.eigentraits, plotSVD