Result of Spatex.GWR.predict/6: local coefficients and predictions at new locations, after
GWR.predict and the GWRResults it returns in mgwr 2.2.1.
Matrices (params, bse, tvalues) are lists of m rows with k entries, the intercept
first when the model has one; per-point vectors have m entries. Non-finite numbers are the
atoms :nan, :infinity and :neg_infinity.
Fields
m- the number of prediction points;n,k- calibration observations and design columns (the intercept included).family,bw,kernel,fixed,spherical,constant- the model that was calibrated. An adaptivebwis the integer number of nearest calibration points.params- the local coefficients at each prediction point.bse,tvalues- their standard errors and t-values. The standard errors scale the local covariance byscale(the calibration residual variance, orexog_scale).predictions-sum_j x_new_ij * params_ij. For the Gaussian family this is the predicted response; like mgwr, for:poissonand:binomialit is the linear predictor (log mean or log-odds), not the mean.local_r2- the geographically weighted R-squared at each prediction point from the calibration residuals (Gaussian only;nilfor the other families, where mgwr raises).scale- the scale used for the covariances: the calibrationsigma2for the Gaussian family,1.0for the others, or theexog_scalethat was passed.warnings- messages such as a truncated adaptive bandwidth.
Summary
Types
@type t() :: %Spatex.GWR.Prediction{ bse: [[value()]], bw: pos_integer() | float() | :infinity, constant: boolean(), family: :gaussian | :poisson | :binomial, fixed: boolean(), k: pos_integer(), kernel: :bisquare | :gaussian | :exponential, local_r2: [value()] | nil, m: pos_integer(), n: pos_integer(), params: [[value()]], predictions: [value()], scale: value(), spherical: boolean(), tvalues: [[value()]], warnings: [String.t()] }
@type value() :: float() | :nan | :infinity | :neg_infinity