Result of Spatex.GWR.fit/4, with the attribute names of mgwr.gwr.GWRResults (mgwr 2.2.1)
in snake_case, for the Gaussian, Poisson and binomial families.
Per-location matrices (params, bse, tvalues) are lists of n rows with k entries,
the intercept first when the model has one. Per-location vectors have n entries. Non-finite
numbers are the atoms :nan, :infinity and :neg_infinity.
Fields
n,k- observations and design columns (the intercept included).family-:gaussian,:poissonor:binomial.bw,kernel,fixed,spherical,constant- the model that was fitted. An adaptivebwis the integer number of nearest neighbors (the focal point included).params,bse,tvalues- local coefficients, standard errors and t-values.local_r2(Gaussian only),predy(the fitted means),resid(response residuals),influ(diagonal of the hat matrix),std_res,cooks_d.resid_ss,tr_s(tr(S)),tr_sts(tr(S'S)),enp(effective number of parameters),sigma2,df_resid(n - 2 tr(S) + tr(S'S)).scale- the residual variance for the Gaussian family,1.0otherwise.llf,aic,aicc,bic,cv- log-likelihood and information criteria. The Gaussian ones follow mgwr'sget_AIC/get_AICc/get_BIC; for Poisson and binomial they are deviance based:aic = deviance + 2 tr(S),aicc = aic + 2 tr(S) (tr(S) + 1) / (n - tr(S) - 1),bic = deviance + tr(S) ln(n).r2,adj_r2- global (deviance based) R-squared and its adjusted form (Gaussian only).d2,adj_d2- the percent deviance explained1 - global_deviance / null_devianceand its adjusted form, for every family;null_deviance,global_devianceare its parts.deviance,resid_deviance,p_dev- local deviance of the weighted-mean model, local residual deviance and the local percent deviance1 - resid_deviance / deviance(GLM families;nilfor Gaussian).iterations- IWLS iterations per location (GLM only).adj_alpha- multiple-testing corrected alphas for the 0.1, 0.05 and 0.001 levels (da Silva and Fotheringham, 2016);critical_tval- the t critical value for the corrected 0.05 level (n - 1degrees of freedom, as in mgwr).hat_matrix- then x nhat matrixS(S yarepredy,diag(S)isinflu) as a list of rows, or anNx.Tensorwithhat_matrix: :tensor;nilunlessfit/4was asked for it.warnings- messages such as a truncated adaptive bandwidth.
Summary
Types
@type t() :: %Spatex.GWR.Result{ adj_alpha: [value()], adj_d2: value(), adj_r2: value() | nil, aic: value(), aicc: value(), bic: value(), bse: [[value()]], bw: pos_integer() | float() | :infinity, constant: boolean(), cooks_d: [value()], critical_tval: value(), cv: value(), d2: value(), deviance: [value()] | nil, df_resid: value(), enp: value(), family: :gaussian | :poisson | :binomial, fixed: boolean(), global_deviance: value(), hat_matrix: [[value()]] | Nx.Tensor.t() | nil, influ: [value()], iterations: [pos_integer()] | nil, k: pos_integer(), kernel: :bisquare | :gaussian | :exponential, llf: value(), local_r2: [value()] | nil, n: pos_integer(), null_deviance: value(), p_dev: [value()] | nil, params: [[value()]], predy: [value()], r2: value() | nil, resid: [value()], resid_deviance: [value()] | nil, resid_ss: value(), scale: value(), sigma2: value(), spherical: boolean(), std_res: [value()], tr_s: value(), tr_sts: value(), tvalues: [[value()]], warnings: [String.t()] }
@type value() :: float() | :nan | :infinity | :neg_infinity