Select to view content in your preferred language

ArcGIS Pro 3.1.0: What is the python code based on which the weight of the surrounding (neighborhood) of each observation is calculated in the Geograp

677
2
08-22-2023 03:44 AM
JamalNUMAN
Legendary Contributor

ArcGIS Pro 3.1.0: What is the python code based on which the weight of the surrounding (neighborhood) of each observation is calculated in the Geographically Weighted Regression (GWR)?

 

As the only difference between the ordinary linear regression (ordinary least square – OLS) and the Geographically Weighted Regression (GWR) is that the observations in the GWR method are weighted based on their neighborhood and after being weighted, the predicted value for the focal observation is calculated based on the weighted observations but not raw observations.

 

Then what is the python code that can show the weight of influence of each surrounding observation on the focal observation?

 

Clip_12.jpgClip_13.jpgClip_14.jpgClip_15.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

The "python code" was listed in your previous link

Re: ArcGIS Pro 3.1.0: What is the python code for ... - Esri Community

Are you looking for the syntax?

What are your variables that you are trying to use in the GWR?

Geographically Weighted Regression (GWR) (Spatial Statistics)—ArcGIS Pro | Documentation

eg "LandCover2000", "LandCover2010", "Income", "PerCapitaIncome" 

see some of the examples in the Python section.

 


... sort of retired...
JamalNUMAN
Legendary Contributor

There is no code that calculates the weights for the neighboring observations for each focal observation 

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos