pysal.model.mgwr.utils.compare_surfaces

pysal.model.mgwr.utils.compare_surfaces(data, var1, var2, gwr_t, gwr_bw, mgwr_t, mgwr_bw, name, kwargs1, kwargs2, savefig=None)[source]

Function that creates comparative visualization of GWR and MGWR surfaces.

Parameters:
data : pandas or geopandas Dataframe

gwr/mgwr results

var1 : string

name of gwr parameter estimate column in frame

var2 : string

name of mgwr parameter estimate column in frame

gwr_t : string

name of gwr t-values column in frame associated with var1

gwr_bw : float

bandwidth for gwr model for var1

mgwr_t : string

name of mgwr t-values column in frame associated with var2

mgwr_bw: float

bandwidth for mgwr model for var2

name : string

common variable name to use for title

kwargs1:

additional plotting arguments for gwr surface

kwargs2:

additional plotting arguments for mgwr surface

savefig: string, optional

path to save the figure. Default is None. Not to save figure.