This is a R package for implementing a geographically weighted partial correlation via a gwpcor function. This is an addon function of GW model.
devtools::install_github("gwpcor/GWpcor") or install.packages("GWpcor")
Percival J. and Tsutsumida N. (2017) Geographically weighted partial correlation for spatial analysis, GI_forum, Issue 1, 36-43, URL http://dx.doi.org/10.1553/giscience2017_01_s36