View source: R/SpatialPCA_SpatialPCs.R
SpatialPCA_SpatialPCs | R Documentation |
Calculating Spatial PCs (latent factor matrix Z).
SpatialPCA_SpatialPCs(object, fast = FALSE, eigenvecnum = NULL)
object |
SpatialPCA object. |
fast |
Select fast=TRUE if the user wants to use low-rank approximation on the kernel matrix to calculate the spatial PCs, otherwise select FALSE. |
eigenvecnum |
When fast=TRUE, eigenvecnum is the number of top eigenvectors and eigenvalues to be used in low-rank approximation in the eigen decomposition step for kernel matrix. The default is NULL, if specified, it is recommended that these top eigen values explain >=90% of the variance. In estimating spatial PCs, we need larger number of eigenvectors in kernel matrix for more accurate estimation. |
Returns SpatialPCA object with estimated Spatial PCs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.