Description Usage Arguments Value Slots See Also Examples
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.
1 |
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". |
prcomp
returns an object of class FLPCA
results
cache list of results computed.
deeptbl
Input data object in deep format.
otbl
output table name.
prcomp
for R reference implementation.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.