genPDQ performs the SVD and GSVD for all methods in ExPosition
.
genPDQ(datain, M = NULL, W = NULL, is.mds = FALSE, decomp.approach = "svd", k = 0)
Data of class epSVD
which is a list of matrices and vectors:
The left singular vectors (rows).
The right singular vectors (columns).
Vector of the singular values.
Diagonal matrix of the singular values.
Number of singular values/vectors
Rank of the decomposed matrix. If it is 1, 0s are padded to the above items for plotting purposes.
Explained variance per component
fully preprocessed data to be decomposed.
vector or diagonal matrix of masses (for the rows)
vector or diagonal matrix of weights (for the columns)
a boolean. If the method is of MDS (e.g., epMDS
), use TRUE. All other methods: FALSE
a string. Allows for the user to choose which decomposition method to perform. Current options are SVD or Eigen.
number of components to return (this is not a rotation, just an a priori selection of how much data should be returned).
Derek Beaton
This function should only be used to create new methods based on the SVD or GSVD.
pickSVD