applying a regression kriging model outside gstats

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

applying a regression kriging model outside gstats

Naura, Marc
Hi,
I have produced a regression kriging model using gstats that I want to deliver to a wide range of users to predict values for new sites using the web or as part of a simple computer software (e.g. Visual Basic software).  Is there a simple way of doing that or do I need to use R and gstats to produce predictions?
Many thanks
Marc
_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: applying a regression kriging model outside gstats

Tomislav Hengl-5

Ordinary kriging and hence also RK are matrix algebra
(http://spatial-analyst.net/book/system/files/RK5points.zip <-- look for
the excel file). If you have model parameters (betas, vgm parameters),
then it should be relatively easy to implement to generate predictions
(you do not need gstat or similar). Problems might happen if the number
of points is very high >>1000 so solving matrices can take time (in
which case using a search radius etc is a good idea) or if you have to
generate predictions for large areas... or you do not work with a linear
model...

HTH,

T. Hengl

On 03/20/2018 12:12 PM, Naura, Marc wrote:
> Hi,
> I have produced a regression kriging model using gstats that I want to deliver to a wide range of users to predict values for new sites using the web or as part of a simple computer software (e.g. Visual Basic software).  Is there a simple way of doing that or do I need to use R and gstats to produce predictions?
> Many thanks
> Marc
> _______________________________________________
> R-sig-Geo mailing list
> [hidden email]
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: applying a regression kriging model outside gstats

Barry Rowlingson
In reply to this post by Naura, Marc
On Tue, Mar 20, 2018 at 11:12 AM, Naura, Marc <[hidden email]>
wrote:

> Hi,
> I have produced a regression kriging model using gstats that I want to
> deliver to a wide range of users to predict values for new sites using the
> web or as part of a simple computer software (e.g. Visual Basic software).
> Is there a simple way of doing that or do I need to use R and gstats to
> produce predictions?
>

If you don't want to reimplement kriging in VIsual Basic and "using the
web" means what I think it means, you can make your model accessible via
something like Shiny or one of the other R-Web interfaces described in the
R Web Technology Task View.

These methods qualify as "simple", for some values of "simple"....

Barry

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo