getPCAFunc {iCheck} | R Documentation |
Get principal components of arrays.
getPCAFunc(es, labelVariable = "subjID", hybName = "Hybridization_Name", requireLog2 = TRUE, corFlag = FALSE )
es |
An |
labelVariable |
A character string.
The name of a phenotype data variable use to
label the arrays in the boxplots. By default,
|
hybName |
character string. indicating the phenotype variable |
requireLog2 |
logical. |
corFlag |
logical. Indicating if correlation matrix ( |
A list with 3 elements:
es.s |
An |
pcs |
An object returned by the function |
requireLog2 |
logical. The same value as the input |
Weiliang Qiu <stwxq@channing.harvard.edu>, Brandon Guo <brandowonder@gmail.com>, Christopher Anderson <christopheranderson84@gmail.com>, Barbara Klanderman <BKLANDERMAN@partners.org>, Vincent Carey <stvjc@channing.harvard.edu>, Benjamin Raby <rebar@channing.harvard.edu>
# generate simulated data set from conditional normal distribution set.seed(1234567) es.sim = genSimData.BayesNormal(nCpGs = 100, nCases = 20, nControls = 20, mu.n = -2, mu.c = 2, d0 = 20, s02 = 0.64, s02.c = 1.5, testPara = "var", outlierFlag = FALSE, eps = 1.0e-3, applier = lapply) print(es.sim) pca.obj = getPCAFunc(es = es.sim, labelVariable = "subjID", hybName = "memSubj", requireLog2 = FALSE, corFlag = FALSE )