prcomp: 'prcomp' Performs principal component analysis on a FLTable....

Description Usage Arguments Value Slots See Also Examples

Description

prcomp Performs principal component analysis on a FLTable. The function internally computes either the correlation matrix or the covariance matrix and performs eigenvalue decomposition. The DB Lytix function which is called id FLPCA.

Usage

1

Arguments

formula

A symbolic description of model variables for which PCA is to be computed.

data

An object of class FLTable.

matrixtype

Indicates whether a correlation matrix or a covariance matrix should be used for Eigen value decomposition.Allowed values are "CORREL" and "COVAR".

Value

prcomp returns an object of class FLPCA

Slots

results

cache list of results computed.

deeptbl

Input data object in deep format.

otbl

output table name.

See Also

prcomp for R reference implementation.

Examples

1
2
3
4
5
6
fltbl <- FLTable(getTestTableName("tblLogRegrMulti"),"OBSID", "VARID", "NUM_VAL")
flmod <- prcomp(data = fltbl, matrixtype = "COVAR",where = "")
rtbl <- iris
rtbl$Species <- as.numeric(rtbl$Species)
fliris <- as.FLTable(rtbl,tableName = getOption("TestTempTableName"),temporary=F, drop = TRUE)
flirispca <- prcomp(Species~., data = fliris)

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.