Questions tagged [spgwr]

11 questions
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

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
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

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

SPGWR error: new data matrix rows mismatch

I´m trying to run a GWR code with spgwr in R and I´m having a lot of hardships. I´m trying to run a Hedonic Model into GWR, using a point shapefile that I´ve prepared from a database of real estate transactions in my city, but I can´t run the model…
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
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
0 answers

command doesn't run with no error

Im trying to run a geographically weighted regression. My first step was to calibrate the bandwidth of the kernel I have a spatialPointDataFrame map. my command is: bw = gwr.sel(T_cub ~ diss + V_code + PestContro+ elevation + Shape_Area + gadash +…
0
votes
1 answer

Return AICc from a GWR model

I have run a geographically weighted regression (GWR) in R with the spgwr package and would like to extract the value of AICc and save it as separately. However, this does not seem to be possible. So, what other ways are there to extract or…
0
votes
0 answers

Extract coefficients from spreg.OLS results

I'm trying to recreate an R spgwr notebook using PySAL. Using R, local coefficients can be directly extracted into a DataFrame like so: (CSV is available here) R library(spgwr) df <- read.csv("file.csv") attach(df) # calibrate bandwidth bw <-…
urschrei
  • 25,123
  • 12
  • 43
  • 84