[GIS] Using R to do logistic geographically weighted regression(GWR) prediction

geographically-weighted-regressionpysalpythonrregression

I'm using the R package "GWmodel" to do the logistic GWR, but this package doesn't provide the prediction function for generalized GWR(Binomial/Poisson). How can I do the Logistic GWR prediction using R? I've searched other R packages, but there were no good solutions.

Also, I tried to apply Python library “PySAL”, this library is, it seems, providing logistic GWR prediction. However, the difference of the bandwidths calculated by "PySAL" and "GWmodel" was too large(using the same dataset), and the bandwidth from "GWmodel" was more reasonable, so I'm still considering to work on R. I don't want to use GWR4 too.

Best Answer

Is the gwmodel$SDF object not populated? The model object should contain a SpatialPixelsDataFrame object with the model estimates.

It is very difficult to provide advice when you do not show us what you have done but, rather just state an opinion that may or many not be true.

I would image that the R predict function (generic for gwr.predict) allows for additional arguments to predict the log-likelihood or probabilities based on the same arguments used for gwr.basic. The argument family ="binomial" is likely just an argument passed to glm.

Related Question