pca: Principal Component Analysis

Description Usage Arguments Value Author(s) Examples

Description

Performs a principal component analysis based on Singular Value Decomposition, on the given data matrix and returns the result as an object of the S3 class pca

Usage

1
pca(X, autoscale = T, exclude = T)

Arguments

X

a n x p data frame of n observations and p variables.

autoscale

a logical value indicating whether the variables should be autoscaled

exclude

a logical value indicating whether the first two columns should be excluded from the computation. The default is TRUE, because usually the first two columns of the dataset processed represent respectively the sample names and the class labels associated with the samples

Value

an S3 object of class pca with the following components:

Author(s)

Piergiorgio Palla

Examples

1
2
data(cachexiaData)
pca_obj <- pca(cachexiaData, autoscale = TRUE, exclude = TRUE)

Example output

Loading required package: AUCRF
Loading required package: randomForest
randomForest 4.6-14
Type rfNews() to see new features/changes/bug fixes.
AUCRF 1.1

Attaching package: 'RFmarkerDetector'

The following object is masked from 'package:stats':

    screeplot

RFmarkerDetector documentation built on May 2, 2019, 3:42 p.m.