PCA.Bootstrap: Principal Components Analysis with bootstrap confidence...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/PCA.Bootstrap.R

Description

Calculates a Principal Components Analysis with bootstrap confidence intervals for its parameters

Usage

1
PCA.Bootstrap(X, dimens = 2, Scaling = "Standardize columns", B = 1000, type = "np")

Arguments

X

The original raw data matrix

dimens

Desired dimension of the solution.

Scaling

Transformation that should be applied to the raw data.

B

Number of Bootstrap samples to draw.

type

Type of Bootstrap ("np", "pa", "spper", "spres")

Details

The types of bootstrap used are:

For the moment, only the non-parametric bootstrap is implemented.

The Principal Components (eigenvectors) are obtained using bootstrap samples.

The Row scotes are obtained projecting the completen data matrix into the bootstrap Principal Components. In this way all the individulas have the same number of replications.

Value

Type

The type of Bootstrap used

InitTransform

Transformation of the raw data

InitData

Initial data provided to the function'

TransformedData

Transformed Data

InitialSVD

Singular value decomposition of the transformed data

InitScores

Row Scores for the initial Data

InitCorr

Correlation among variables and Principal Components for the Initial Data

Samples

Matrix containing the members of the Bootstrap Samples

EigVal

Matrix containing the eigenvalues (columns) for each bootstrap sample (columns)

Inertia

Matrix containing the proportions of accounted variance (columns) for each bootstrap sample (columns)

Us

Three-dimensional array containing the left singular vectors for each bootstrap sample

Vs

Three-dimensional array containing the right singular vectors for each bootstrap sample

As

Projection of the bootstrap sampled matrix onto the bottstrap principal components

Bs

Projection of the bootstrap sampled matrix onto the bottstrap principal coordinates

Scores

Projection of the original matrix onto the bootstrap principal components

Struct

Correlation of the Initial Variabblñes and the PCs for each bootstrap sample

Author(s)

Jose Luis Vicente Villardon

References

Daudin, J. J., Duby, C., & Trecourt, P. (1988). Stability of principal component analysis studied by the bootstrap method. Statistics: A journal of theoretical and applied statistics, 19(2), 241-258.

Chateau, F., & Lebart, L. (1996). Assessing sample variability in the visualization techniques related to principal component analysis: bootstrap and alternative simulation methods. COMPSTAT, Physica-Verlag, 205-210.

Babamoradi, H., van den Berg, F., & Rinnan, Å. (2013). Bootstrap based confidence limits in principal component analysis—A case study. Chemometrics and Intelligent Laboratory Systems, 120, 97-105.

Fisher, A., Caffo, B., Schwartz, B., & Zipunnikov, V. (2016). Fast, exact bootstrap principal component analysis for p> 1 million. Journal of the American Statistical Association, 111(514), 846-860.

See Also

PCA.Biplot

Examples

1
2
3
4
5
6
7
8
## Not run: X=wine[,4:21]
grupo=wine$Group
rownames(X)=paste(1:45, grupo, sep="-")
pcaboot=PCA.Bootstrap(X, dimens=2, Scaling = "Standardize columns", B=1000)
plot(pcaboot, ColorInd=as.numeric(grupo))
summary(pcaboot)

## End(Not run)

villardon/MultBiplotR documentation built on June 5, 2021, 8:55 a.m.