Questions tagged [gwr]

Suitable if you have a question about Geographically Weighted Regression module of your environment.

Geographically weighted regression is a spatial analysis technique that takes non-stationary variables into consideration (e.g., climate; demographic factors; physical environment characteristics) and models the local relationships between these predictors and an outcome of interest. Suitable if you have a question about GWR module of your environment.

Some links on general information:

35 questions
0
votes
0 answers

Unable to import Multiscale Geographically Weighted Regression (MGWR) module

I pip installed mgwr along with all the supporting packages. Now, when I am trying to import specific attribute of mgwr, I am getting attribute error saying AttributeError: module 'numpy' has no attribute 'typeDict' I have checked all the…
0
votes
0 answers

Would you explain GWR model results are make another variables?

I'm using GWR model in Python how many spatial characteristics affect in my results. I try to use 14 variables, but GWR results are not presents variable name but also x0, x1, ... and the results show me x0, x1, ... x14, input variables are 14, but…
Larva
  • 1
  • 1
0
votes
1 answer

Error when running multiscale GWR: Error in gw_weight_vec: Not compatible > with requested type: [type=NULL; target=double]

I am trying to run multiscale geographically weighted regression (MGWR) using the GWmodel package in R. When running the function gwr.multiscale this error is shown: Error in gw_weight_vec(vdist, bw, kernel, adaptive): Not compatible with requested…
Nikos
  • 426
  • 2
  • 10
0
votes
0 answers

Problem with finding Bandwidth for MGWR in python

So im using python and trying to do a MGWR When looking for bw for my GWR I used >>> gwr_selector = Sel_BW(g_coords, g_y, g_X) >>> bw = gwr_selector.search(bw_min=2) >>> bw and it worked fine. I am trying to do >>> mgwr_selector = Sel_BW(g_coords,…
0
votes
0 answers

Finding bandwidth for geographically weighted regression

I'm trying to find the optimum bandwidth for local regression (GWR), but I get an error which I don't understand how to fix. All my code runs fine until I ask for the optimum one. Any suggestions and/or explanations please? The purpose is to do…
0
votes
0 answers

Why do my arrays display missing values when identifying a bandwidth? (geopandas)

I'm trying to identify a suitable bandwidth to use for a geographically weighted regression but every time I search for the bandwidth it displays that there are missing (NaN) values within the arrays of the dataset. Although, each row features all…
praadaaa
  • 1
  • 1
0
votes
0 answers

How to calculate Moran's I and GWR when given duplicated factor data

I'm trying to do the statistical analysis by using the Moran's I, but it leads me into a serious problem. Suppose the data look like: y indep1 indep2 coord_x coord_y District y1 indep1 1 indep2 1 coord_x 1 coord_y 1 A y2 indep1 2 indep2…
0
votes
1 answer

package spgwr: apply GWR model parameters to a finer spatial scale

I'm using the R package spgwr to perform geographically weighted regression (GWR). I want to apply the model parameters to a finer spatial scale but I am receiving this error: Error in validObject(.Object): invalid class “SpatialPointsDataFrame”…
Nikos
  • 426
  • 2
  • 10
0
votes
2 answers

Apply geographically weighted regression's model parameters to a finer spatial scale

I have two raster layers, one coarse resolution and one fine resolution. My goal is to extract GWR's coefficients (intercept and slope) and apply them to my fine resolution raster. I can do this easily when I perform simple linear regression. For…
Nikos
  • 426
  • 2
  • 10
0
votes
2 answers

How do I set longitude and latitude as the axes for this ggplot of a map?

Something is wrong with the code but I can't figure out what. I am trying to plot the coefficients of a geographically weighted regression on a map showing the districts of Barcelona. I can get R to plot the points or the map but I am unable to…
0
votes
1 answer

How to obtain standard errors of local regression coefficients in spgwr::ggwr()?

I am using spgwr::ggwr() to fit generalized geographically weighted regression with Poisson model and log-link function. The results provide local coefficient estimates, but i am missing how to get their standard errors (or t statistics) to compute…
maluicr
  • 37
  • 6
0
votes
1 answer

How to allow R to ignore parameters of my function, without it skipping to next parameter?

I have this function GWR.function <- function(shape1,shape2,shape3,x,y,...) there are 3 shapefiles, I want R to allow shape2 and shape3 to be missing. Although for example if I use a if(missing(shape2)) {} and then…
0
votes
1 answer

I am using the ... in R for control variables in a function I am making, how do I convert the control variables to a list?

I have this function which does a geographically weighted regression, I have my shape-file, x for x variable and y for y variable, the ... is for the control variables. For example I want to call a regression first but with multiple control…
0
votes
0 answers

Geographically Weighted Lasso (pkg = gwrr) - Error in W.i %*% X[-i, ] : requires numeric/complex matrix/vector arguments

I am trying to do geographically weighted lasso (GWL) in packgae gwrr. But get this error: Error in W.i %*% X[-i, ] : requires numeric/complex matrix/vector arguments The code is: > col.gwl <- gwl.est(NPb~NAl2O3, locs, df, "exp") When I…
Fian
  • 1
0
votes
1 answer

Facing LinAlgError: Matrix is singular

Community, The language barrier is hitting me hard. Somehow I managed to learn with a model, but I can't predict, as it now says my Matrix is singular - which I don't understand - is it another word for unique? Anyhow, here the important…
TiRoX
  • 31
  • 7