Questions tagged [gwmodel]

An R package conducting geographically-weighted (GW) models.

Links

  1. PDF

  2. Cran.r-project.org

  3. Homepage

  4. Github mirror

15 questions
4
votes
2 answers

how to speed up an R for loop?

I am running the following for loop for the gwr.basic function in the GWmodel package in R. What I need to do is to collect the mean of estimate parameter for any given bandwidth. the code looks…
Blue Moon
  • 4,421
  • 20
  • 52
  • 91
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
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
1 answer

GWmodel ggwr.basic not found

I have been trying to use the function ggwr.basic from the GWmodel package in R for a few days. I need to adjust a gwr binomial model for some data so I am using ggwr.basic(). The package is apparently well installed and loaded before calling the…
1
vote
1 answer

Load data using rJava

I use rJava to integrate Java and R in my project. I need to load GWmodel R package in my application and calculate the distance matrix from Java. This is my function to load GWmodel and calculating distance matrix : Rengine engine = new Rengine(new…
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

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

Spatial Autocorrelation Function Returning Error

Based on the sample data and code below, I am getting an error while running GWmodel::gwss function to compute the spatial Pearson autocorrelation values and plot it on a map. Purpose: To see if there is correlation between AvgTMin and AvgPpt and…
Ed_Gravy
  • 1,841
  • 2
  • 11
  • 34
0
votes
1 answer

Package GWmodel fails to load

Version 2.2-9 of GWmodel (installed from CRAN) fails to load. Reinstalling the package does not fix the problem either. I also tried detaching all loaded packages and tried loading the package again but it fails. I guess the issue is related to how…
Ed_Gravy
  • 1,841
  • 2
  • 11
  • 34
0
votes
1 answer

how to view c source code that has been loaded into R package

recently, I want to know more details about GWmodel package.I typed gwr.binomial.wt at console in Rstudio: function (y, x, bw, W.mat, verbose = T) { tol = 1e-05 maxiter = 20 dp.n <- nrow(x) var.n <- ncol(x) betas <- matrix(nrow = dp.n,…
Nevermore
  • 3
  • 1
0
votes
1 answer

Shiny apps with GWmodel object not found

i'm new to R and i want to build my own Shiny apps based on an R package called GWModel. Here is my code library(shiny) library(GWmodel) library(sp) ui<-shinyUI(fluidPage( titlePanel("Model"), sidebarLayout( sidebarPanel( …
0
votes
1 answer

Load data using RCaller

I want to load data which is embedded in an R package. I use GWmodel package and want to load LondonHP data. But when i try to load the data using RCaller in Java, the xml return is : This is my code to load the…
0
votes
1 answer

How to edit the palette bar in the R function spplot?

I am using the R package GWmodel. While plotting the output of the GWR I found myself unable to edit the side bar in the ssplot function. The few lines of code I'm using(data is already in package) will be sufficient. You only need to install the…
Blue Moon
  • 4,421
  • 20
  • 52
  • 91
0
votes
1 answer

how to for loop a variable inside an R functon

I am a python user new to R. Right now I am dealing with the R package GWmodel. Looking at the function for the basic GWR, this looks like: gwr.res <- gwr.basic(GenEl2004 ~ DiffAdd + LARent + SC1 + Unempl + LowEduc + Age18_24 + Age25_44 + Age45_64,…
Blue Moon
  • 4,421
  • 20
  • 52
  • 91
0
votes
1 answer

ERROR: unused argument in gw.dist function in R GWmodel package

I'm trying to run the function gw.dist(dp.locat, rp.locat, focus=0, p=2, theta=0, longlat=F) In the R package GWmodel. The example provided with the documentation shows the following: First creates some mock…
Blue Moon
  • 4,421
  • 20
  • 52
  • 91