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
3
votes
0 answers

geographically weighted negative binomial regression in R

I have read some references that related to Geographically Weighted Regression (GWR) and I found that some of GWR techniques are available in R such as inside the package of GWModel. Although there are some GWR types in there including Poisson…
SongJL
  • 61
  • 6
3
votes
1 answer

Return the global R2 of a Geographically-weighted regression (GWR) in R

I have ran a geographically-weighted regression (GWR) in R using the spgwr library and now I would like to return the Quasi-global R2 (fit of the model). I've digged into the results with summary(gwr_model) but I haven't found a way to extract this…
rafa.pereira
  • 13,251
  • 6
  • 71
  • 109
2
votes
1 answer

How to test for spatial non-stationarity in R to determine if local regression model is needed?

I have a dataset for which I implement a regression model and from which I assume that the coefficients vary locally. If a spatial non-stationarity is given, it makes sense to run a local regression model, in my case a Geographically Weighted…
the_chimp
  • 205
  • 4
  • 18
2
votes
0 answers

Obtain predictions at new points in geographically weighted regression in r

I have a list of observed points at which I wish to estimate a geographically weighted regression. I then have a separate and distinct set of points at which I want to make a prediction, using this estimated model. This is simulated using this…
Stephen Clark
  • 573
  • 3
  • 18
2
votes
0 answers

Getting an error in ClusterR: cluster error

library(doParallel) library(foreach) library(raster) library(snow) library(spgwr) library(maptools) library(GWmodel) library(e1071) library(sp) I am trying to specify the number of clusters to be used to run a…
mapnerd
  • 21
  • 1
2
votes
0 answers

Running geographic weighted regression on subset of data from large raster using spgwr package

I have a large raster dataset that I have converted to a SpatialPointsDataFrame and from there to a regular data frame. I need to run a geographic weighted regression (GWR) using the spgwr package. I have successfully computed a GWR bandwidth using…
apple
  • 387
  • 1
  • 14
1
vote
0 answers

Progress bar in GWR in R language?

when i start a gwr process (in various libraries) i have to wait until it is done. But there is no indication (e.g progress bar or % completion indicator) as to where the processing is? for example I cannot see any progress bar when running the…
1
vote
0 answers

Error in model.frame.default invalid type (NULL) for variable

I'm quite new to R and trying to create a function. However, when I try to run it, I get an error and haven't been able to solve the problem. This is my function: myfunction <- function(spatialdata,variable1,variable2,variable3){ GWRbandwidth <-…
quintus9
  • 11
  • 2
1
vote
1 answer

How to specify tm_fill() if I want it to be a variable from a new object?

I am trying to create an R function that would run a GWR on variables that the user specifies from a Spatial Polygons Data Frame. The end result of running the function are two mappings - one of the independent variable's values and one of the…
1
vote
1 answer

Geographically weighted logistic regression different dimensions

I am trying to conduct a geographically weighted logistic regression to quantify the spatial variation in my data set. However upon running the gwr model, I get the error that my input data and coordinates have different dimensions. This is the code…
Sara
  • 33
  • 3
1
vote
0 answers

Spatial Points Data Frame with projargs=NA, units for GWR bandwidth in R

I am using R 3.3.0, pachage 'spgwr' I created a spatial points data frame as shown: points_map <- SpatialPointsDataFrame(data=points_df,coords=cbind(points_df$x,points_df$y)) The original data frame (points_df) has latlong coordinates in decimal…
Belen
  • 11
  • 1
1
vote
0 answers

Determine statistically significant results in a GWR in R

I'm running a geographically weighted regression (GWR) in R using the spgwr library. I know it's possible to retrieve the local coefficients and standard errors of each observation with gwr_fit$SDF. Now how do I use this info to determine which…
rafa.pereira
  • 13,251
  • 6
  • 71
  • 109
0
votes
0 answers

GWR error on calculating p-values with LMZ F3GWR test: singularity

I am running a GWR model from the library spgwr, in R, and when I try to see the significant variables by using the function LMZ.F3GWR.test() I get the following error: Error in solve.default(t(x) %*% diag(wj) %*% x) : system is computationally…
ElMago
  • 11
  • 3
0
votes
0 answers

How to solve math domain error using Spatio-temporal weighted regression(STWR)?

i'm trying to use STWR statistics model. I'm following quexiang github examples(https://github.com/quexiang/Fast-STWR). And i have some issue. I make STWR input data(coord, X, y, delt_intervel). However, when i run Sel_Spt_BW functions, it stops…
Larva
  • 1
  • 1
0
votes
1 answer

How to Run a Geographically Weighted Logistic Regression in R?

I have the following data set containing socioeconomic variables: > glimpse(df) Rows: 730,099 Columns: 9 $ id 25500, 25501, 25502, 25503, 25504, 25505, 25506, 25507, 25508, 25509, 25510, 25511, 25512, 25513, 25514, 25515, 25516, 255… $…
Saïd Maanan
  • 511
  • 4
  • 14
1
2 3