Re: [R] dnearneigh::spdep: undesired behaviour with SpatialPoints object: bug or feature? Please confirm.

2014-03-24 Thread Jan Holstein
Dear Roger, thanks for pointing out > This will only generate compliant behaviour when rgdal is loaded, > converting > +init=epsg:4326 to +init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs > +ellps=WGS84 +towgs84=0,0,0, so that is.projected(spdf) is FALSE > which was the intention - either

[R] dnearneigh::spdep: undesired behaviour with SpatialPoints object: bug or feature? Please confirm.

2014-03-20 Thread Jan Holstein
I noticed that dnearneigh::spdep shows diverging behaviour with matrix and SpatialPoints objects respectively: reproducible example: library(spdep) set.seed(5) spdf<-SpatialPointsDataFrame(cbind(lon=runif(1000,2,8),lat=runif(1000,53,56)), data=data.frame(par=runif(1000,0,1)),coords.nrs =

Re: [R] mgcv: how select significant predictor vars when using gam(...select=TRUE) using automatic optimization

2013-04-25 Thread Jan Holstein
Juliet, for you the diagnostic plots: just to recall: the first model was this: fit<-gam(target ~s(mgs)+s(gsd)+s(mud)+s(ssCmax),family=quasi(link=log),data=wspe1,method="REML",select=F) > summary(fit) Parametric coefficients: Estimate Std. Error t value Pr(>|t|)

Re: [R] mgcv: how select significant predictor vars when using gam(...select=TRUE) using automatic optimization

2013-04-18 Thread Jan Holstein
Simon, thanks for the reply, I guess I'm pretty much up to date using mgcv 1.7-22. Upgrading to R 3.0.0 also didn't do any change. Unfortunately using method="REML" does not make any difference: ### first with "select=FALSE" > fit<-gam(target > ~s(mgs)+s(gsd)+s(mud)+s(ssCmax),family=quasi(

[R] mgcv: how select significant predictor vars when using gam(...select=TRUE) using automatic optimization

2013-04-17 Thread Jan Holstein
I have 11 possible predictor variables and use them to model quite a few target variables. In search for a consistent manner and possibly non-manual manner to identify the significant predictor vars out of the eleven I thought the option "select=T" might do. Example: (here only 4 pedictors) firs