Re: [R-sig-Geo] removing internal boundaries from a spatstat window that was created from three adjacent counties

2016-02-15 Thread Rolf Turner
On 13/02/16 11:59, Christopher W. Ryan wrote: In spatstat, I want to create a single window from three adjacent counties in New York State, USA. My original data is a shapefile, "cty036" showing all the New York State county boundaries. Here's what I've done so far: == begin code

Re: [R-sig-Geo] different projection transformation R and gdal commandline

2016-02-15 Thread Chris Reudenbach
Hi Dominik, If you use the gdalUtils package there is no significant difference in the results using CLI or R: library(gdalUtils) gdaltransform(s_srs="+proj=longlat +datum=WGS84", t_srs="+proj=lcc +lat_1=28 +lat_2=50 +lat_0=39.70001220694445 +lon_0=-98 +x_0=0 +y_0=0 +ellps=sphere

Re: [R-sig-Geo] different projection transformation R and gdal commandline

2016-02-15 Thread Dominik Schneider
Sorry, forgot to add the details. rgdal and gdal 1.11.3 were installed from kyngchaos.com > sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-apple-darwin14.5.0 (64-bit) Running under: OS X 10.11.3 (El Capitan) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

[R-sig-Geo] different projection transformation R and gdal commandline

2016-02-15 Thread Dominik Schneider
Hi, I'm struggling to use a custom projection. I am seeing differences with someone using python proj4 bindings and when I compared my R results with my commandline results I got even more confused. the coordinate transformation is different for the two different methods. could someone explain to

[R-sig-Geo] Geographic/Spatial Clustering - pyCluster for R?

2016-02-15 Thread Timothée Giraud
Hello, You could have a look at the ClustGeo package : >ClustGeo: Clustering of Observations with Geographical Constraints >Functions which allow to integrate geographical constraints in Ward hierarchical clustering. Geographical maps of typologies obtained can be displayed with the use of

Re: [R-sig-Geo] R-sig-Geo Digest, Vol 150, Issue 14

2016-02-15 Thread Corey Sparks
Hi Maryia, What function are you using to fit the models? If you're using the fitting routines in spdep, (lagsarlm, errorsarlm, sacsarlm, spautolm) then the AIC prints for each model using the summary() function. You can also get a pseudo R^2 using the summary(fit, Nagelkerke=T) option for

[R-sig-Geo] slope of regression line in moran scatter plot

2016-02-15 Thread Takahiro Yoshida
Dear list members, In moran scatter plot, I checked [1] Slope of lm((spatial lagged variable) ~ (variable)): moran coefficient (spdep:::moran.plot), [2] Slope of lm((spatial lagged standardized variable) ~ (standardized variable)): moran coefficient, and [3] Slope of lm((standardized spatial

[R-sig-Geo] removing internal boundaries from a spatstat window that was created from three adjacent counties

2016-02-15 Thread Christopher W. Ryan
In spatstat, I want to create a single window from three adjacent counties in New York State, USA. My original data is a shapefile, "cty036" showing all the New York State county boundaries. Here's what I've done so far: == begin code = library(shapefiles) library(spatstat)

Re: [R-sig-Geo] LM test for spatial dependence with panel data

2016-02-15 Thread Tobias Rüttenauer
Dear Roger, thanks for your answer! > > Dear list members, > > > > I'm currently estimating a fixed effects panel model and I want to > > control for spatial dependence. Thus, I also estimated two spatial > > fe-models, one with a spatial error term and one with a spatial error > > term and