doCE: Compute cumulative eigenvalue information

Description Usage Arguments See Also Examples

View source: R/doCE.R

Description

Computes the information that is needed in order to make a CEPlot from a PCADSC or pcaRes object. Typically, this function is called on a partial PCADSC object in order to add CEInfo (see examples).

Usage

1
doCE(x, ...)

Arguments

x

Either a PCADSC or a pcaRes object.

...

If doCE is called on a pcaRes object, the full dataset must also be supplied (as data), as well as the number of resampling steps (B).

See Also

CEPlot, PCADSC

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#load iris data
data(iris)

#Define grouping variable, grouping the observations by whether their species is
#Setosa or not
iris$group <- "setosa"
iris$group[iris$Species != "setosa"] <- "non-setosa"
iris$Species <- NULL

## Not run: 
#make a partial PCADSC object, splitting the data by "group"
irisPCADSC <- PCADSC(iris, "group", doCE = FALSE)

#No CEInfo available
irisPCADSC$CEInfo

#Add and show CEInfo
irisPCADSC <- doCE(irisPCADSC)
irisPCADSC$CEInfo

## End(Not run)

#Make a partial PCADSC object and only add CE information with no
#bootstrapping (and thus no test)
irisPCADSC_fast <- PCADSC(iris, "group", doAngle = FALSE,
  doChroma = FALSE, doCE = FALSE)
irisPCADSC_fast <- doCE(irisPCADSC_fast, B = 100)
irisPCADSC_fast$CEInfo

PCADSC documentation built on May 2, 2019, 1:09 p.m.

Related to doCE in PCADSC...