Coding week #2

Published: 06/11/2019

What did I do this week?

This week I implemented an independent module for the algorithm as hypothesized in the proposal. Though the model ran and the loop converged, the betas and the bandwidths from the model using a single variable did not coincide with the results from the already implemented Geographically Weighted Poisson Regression (GWPR) function. On discussion with the mentors on what could be going wrong, we decided to go forward with a different approach. This approach would entail changing the functions within the MGWR implementation to allow calling the function with the family attribute set to Poisson. This model with one variable is expected to result in the same bandwidth and beta values as from the GWPR model.

What is coming up next?

In the coming week I will work on debugging the implementation of the selector function and the MGWR fit function to allow the family attribute to be set to Poisson. The results from that model will then be checked with the GWPR model results.

Did I get stuck anywhere?

No major issues were encountered in the coding of the algorithm this week. The results were not as expected but it revealed further enhancements in the methodology that need to be made.

Looking forward to the progress update next week!