Re: [R-sig-Geo] Regression kriging - error not found when ordinary kriging

2013-11-20 Thread Ashton Shortridge
hi Jordan, (off-list) it sounds like your problem is not a good candidate for regression kriging. RK (or the similar kriging with external drift, KED) require that you have collocated dependent and independent variables so that you can actually run a regression. You could use cokriging,

Re: [R-sig-Geo] Regression kriging - error not found when ordinary kriging

2013-11-19 Thread Jordan Chetcuti
Hi Ashton, Thanks for taking the time to email me. I alas don't have the variables for all locations in the blank dataset. I am beginning to wonder if I entirely understand regression kriging (or in fact if any of my class really understand this). Having the variables at more locations than the

Re: [R-sig-Geo] Regression kriging - error not found when ordinary kriging

2013-11-18 Thread Ashton Shortridge
Hi Jordan, I always use the 'data' parameter when kriging. Here's how I'd do it: class(bd) # This should be a SpatialPointsDataFrame names(bd) # all the variables in the model (Total, m5005CVOL, etc) class(blank) # This should be a SpatialPointsDataFrame names(blank) # all the variables in

[R-sig-Geo] Regression kriging - error not found when ordinary kriging

2013-11-15 Thread Jordan Chetcuti
Hello, I was wondering if anyone has encountered this issue? This line works: TotalKrige - krige(Total~1, locations=bd, newdata=blank, model=fit_Total) This line does not: TotalRegKrige - krige(Total~m5005CVOL+n50010CVOL+n50015CVOL+DTM, locations=bd,