gwpca_core {heterogen} | R Documentation |
Core Function of GWPCA
Description
The gwpca_core
function is a core implementation of Generalized Weighted Principal Component Analysis for each iteration.
Usage
gwpca_core(xy, p_xy, env, env_trans, tau)
Arguments
xy |
A matrix containing the coordinates of the points where environmental measurements were taken. The matrix should have two columns, representing the X and Y coordinates. |
p_xy |
A matrix containing the coordinates of the point GWPCA will be estimated. It should have two columns for X and Y coordinates. |
env |
A data matrix representing the environmental variables. Rows represent observations (points or grid cells), and columns represent environmental variables. |
env_trans |
Transpose of |
tau |
The bandwidth parameter for spatial weighting in GWPCA. It determines the extent of spatial influence on the estimation of principal components. |
Value
A vector of eigenvalues from local PCA