Result of Spatex.GWR.local_collinearity/3: local indicators of multicollinearity within
the geographically weighted design matrix, after GWRResults.local_collinearity and
MGWRResults.local_collinearity of mgwr 2.2.1.
Matrices are lists of n rows (one per location). Non-finite numbers are the atoms :nan,
:infinity and :neg_infinity.
Fields
n,k- locations and design columns (the intercept included).constant,kernel,fixed,spherical- the weighting that was used.bw- the single bandwidth (a GWR),bws- one bandwidth per design column (an MGWR); exactly one of them is set. Adaptive bandwidths are integer neighbor counts.corr- local correlation coefficients between the explanatory variables (the intercept excluded): one column per pair ofcorr_pairs, which lists the pairs as{i, j}withi < jin lexicographic order,iandjbeing 0-based design columns.nilforbws.vif- local variance inflation factors, one column per explanatory variable (the intercept excluded, sok - 1columns with an intercept).nilforbws.condition_number- the local condition number of the weighted design (the largest over the smallest singular value of the column-scaled weighted design matrix): one value per location. Belsley, Kuh and Welsch suggest values above 30 indicate harmful collinearity.vdp- the local variance-decomposition proportions of the smallest singular value,kcolumns, in design column order (the intercept first when the model has one).warnings- messages such as a truncated adaptive bandwidth.
Summary
Types
@type bandwidth() :: pos_integer() | float() | :infinity
@type t() :: %Spatex.GWR.Collinearity{ bw: bandwidth() | nil, bws: [bandwidth()] | nil, condition_number: [value()], constant: boolean(), corr: [[value()]] | nil, corr_pairs: [{non_neg_integer(), non_neg_integer()}] | nil, fixed: boolean(), k: pos_integer(), kernel: :bisquare | :gaussian | :exponential, n: pos_integer(), spherical: boolean(), vdp: [[value()]], vif: [[value()]] | nil, warnings: [String.t()] }
@type value() :: float() | :nan | :infinity | :neg_infinity