Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-09-04 Thread Paul Bidanset
Fantastic. Thank you so much. On Wed, Sep 4, 2013 at 5:08 AM, Roger Bivand wrote: > On Tue, 3 Sep 2013, Paul Bidanset wrote: > > Thank you very much for the example and the clarification. My hold out >> test >> is random. The vector provided by gw.adapt() allows me to see the >> bandwidth >> s

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-09-04 Thread Roger Bivand
On Tue, 3 Sep 2013, Paul Bidanset wrote: Thank you very much for the example and the clarification. My hold out test is random. The vector provided by gw.adapt() allows me to see the bandwidth size for each point. Is there a way to see each regression point's bandwidth size with the correct form

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-09-03 Thread Paul Bidanset
Thank you very much for the example and the clarification. My hold out test is random. The vector provided by gw.adapt() allows me to see the bandwidth size for each point. Is there a way to see each regression point's bandwidth size with the correct format you just showed me? On Tue, Sep 3, 2013

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-09-03 Thread Roger Bivand
yOn Fri, 30 Aug 2013, Roger Bivand wrote: On Fri, 30 Aug 2013, Paul Bidanset wrote: Thank you. I'd like to subset into a specific county. Should there be further partitioning from that level? No idea. Please re-create your scenario by subsetting georgia and the coordinates to suit. lib

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-30 Thread Roger Bivand
On Fri, 30 Aug 2013, Paul Bidanset wrote: Thank you. I'd like to subset into a specific county. Should there be further partitioning from that level? No idea. Please re-create your scenario by subsetting georgia and the coordinates to suit. Roger On Fri, Aug 30, 2013 at 10:19 AM, Roger

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-30 Thread Paul Bidanset
Thank you. I'd like to subset into a specific county. Should there be further partitioning from that level? On Fri, Aug 30, 2013 at 10:19 AM, Roger Bivand wrote: > On Fri, 30 Aug 2013, Paul Bidanset wrote: > > Alrighty then! >> > > Thanks. Now make this your case by subsetting georgia in a way

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-30 Thread Roger Bivand
On Fri, 30 Aug 2013, Paul Bidanset wrote: Alrighty then! Thanks. Now make this your case by subsetting georgia in a way that matches your case (all counties west of x?, random set?), and we may be getting closer. In the geographical partition, the fit points are all a long way from the data

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-30 Thread Paul Bidanset
Alrighty then! Say I create this adaptive bandwidth model using the original dataset "georgia" coords = cbind(georgia$x, georgia$y) bwsel <- gwr.sel(PctBach ~ TotPop90 + PctRural + PctEld + PctFB + PctPov + PctBlack, data=georgia, adapt=TRUE, coords, gweight=gwr.Gauss, method = "aic" ) bw1 <- gw.

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-30 Thread Roger Bivand
Provide a reproducible code example of your problem using a built in data set. No reproducible example, no response, as I cannot guess (and likely nobody else can either) what your specific misunderstanding is. Code using for example the Georgia data set in the package. You seem to be assuming

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-30 Thread Paul Bidanset
Roger, I think all I would like to know is if it is possible to apply a calibrated GWR model to a hold-out sample, and if so, what the most accurate way to do so is. I understand the pitfalls of GWR but would like to learn as much as I can before progressing to the next spatial methodology I learn

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-30 Thread Roger Bivand
Paul, Luis, I suspect that your speculations are completely wrong-headed. Please provide a reproducible example with a built-in data set, so that there is at least minimal clarity in what you are guessing. Note in addition that GWR as a technique should not be used for anything other than expl

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-30 Thread Luis Guerra
> Thank you Luis. When calibrating the adaptive model, using adapt=t in the > bandwidth selection created the proportion you speak of, which then allowed > me to create a bandwidth matrix using gwr.adapt. However, this has not > worked for me with holdout samples. Have you had success in this regar

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-29 Thread Paul Bidanset
Thank you Luis. When calibrating the adaptive model, using adapt=t in the bandwidth selection created the proportion you speak of, which then allowed me to create a bandwidth matrix using gwr.adapt. However, this has not worked for me with holdout samples. Have you had success in this regard? I do

Re: [R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-29 Thread Luis Guerra
Dear Paul, I am dealing with this kind of problems right now, and if I am not wrong, when you want to apply an adaptative bandwidth, you should introduce a value for the "adapt" parameter instead of for the "bandwidth" parameter. This value will be between 0 and 1 and indicates the proportion of c

[R-sig-Geo] Holdout Sampling Adaptive Bandwidth SPGWR

2013-08-29 Thread Paul Bidanset
Hi Folks, I was curious if anyone has had experience applying an SPGWR model with an adaptive bandwidth matrix to a holdout or validation sample. I am using the "fit.points" command, which does not seem to allow for a new bandwidth calibrated around the holdout samples XY coordinates. Any directio