genPDQ {ExPosition} R Documentation

## genPDQ: the GSVD

### Description

genPDQ performs the SVD and GSVD for all methods in ExPosition.

### Usage

genPDQ(datain, M = NULL, W = NULL, is.mds = FALSE, decomp.approach = "svd", k = 0)


### Arguments

 datain fully preprocessed data to be decomposed. M vector or diagonal matrix of masses (for the rows) W vector or diagonal matrix of weights (for the columns) is.mds a boolean. If the method is of MDS (e.g., epMDS), use TRUE. All other methods: FALSE decomp.approach a string. Allows for the user to choose which decomposition method to perform. Current options are SVD or Eigen. k number of components to return (this is not a rotation, just an a priori selection of how much data should be returned).

### Details

This function should only be used to create new methods based on the SVD or GSVD.

### Value

Data of class epSVD which is a list of matrices and vectors:

 P The left singular vectors (rows). Q The right singular vectors (columns). Dv Vector of the singular values. Dd Diagonal matrix of the singular values. ng Number of singular values/vectors rank Rank of the decomposed matrix. If it is 1, 0s are padded to the above items for plotting purposes. tau Explained variance per component

### Author(s)

Derek Beaton

pickSVD