Re: [R-sig-Geo] covariance matrix for kriging predictions

2013-12-16 Thread Jui-Han Chang
Hi Ben, Thank you so much! This is exactly what I am looking for. Best, Han [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] covariance matrix for kriging predictions

2013-12-13 Thread Benedikt Gräler
Dear Jui-Han, I believe the following script does what you are looking after. The idea is to start with the covariance matrix purely defined by the variogram model (i.e. with the joint sill on the diagonal). Rescale this covariance matrix first to correlations and then back to covariances using

[R-sig-Geo] covariance matrix for kriging predictions

2013-12-12 Thread Jui-Han Chang
Hi all, I am trying to get covariance matrix for kriging predictions. I used krige0 function in the gstat library with options fullCovariance=TRUE and computeVar=TRUE. I got a covariance matrix but the values seem to be too large. I converted the covariance matrix to correlation matrix and got

Re: [R-sig-Geo] covariance matrix for kriging predictions

2013-12-12 Thread Edzer Pebesma
On 12/12/2013 08:20 PM, Jui-Han Chang wrote: Hi all, I am trying to get covariance matrix for kriging predictions. I used krige0 function in the gstat library with options fullCovariance=TRUE and computeVar=TRUE. I got a covariance matrix but the values seem to be too large. I converted

Re: [R-sig-Geo] covariance matrix

2013-12-05 Thread Benedikt Gräler
Dear Erin, you might want to take a look at the gstat function variogramLine and set the parameter covariance to TRUE. The argument dist_vector takes as well a distance matrix and will then return a covariance matrix. HTH, best wishes, Ben Hodgess, Erin hodge...@uhd.edu wrote: Hi! Here is

Re: [R-sig-Geo] covariance matrix

2013-12-05 Thread Edzer Pebesma
Erin, http://ifgi.uni-muenster.de/~epebe_01/mstp/lec5.html http://ifgi.uni-muenster.de/~epebe_01/mstp/lec7.html contain some minimal, one-dimensional kriging functions that I used in my class recently. R markdown source files are on https://github.com/edzer/mstp On 12/05/2013 04:36 AM,

Re: [R-sig-Geo] covariance matrix

2013-12-05 Thread Hodgess, Erin
-project.org Subject: Re: [R-sig-Geo] covariance matrix Erin, http://ifgi.uni-muenster.de/~epebe_01/mstp/lec5.html http://ifgi.uni-muenster.de/~epebe_01/mstp/lec7.html contain some minimal, one-dimensional kriging functions that I used in my class recently. R markdown source files are on https

[R-sig-Geo] covariance matrix

2013-12-04 Thread Hodgess, Erin
Hi! Here is a goofy question, please: how do I get the covariance matrix based on the estimated model, say exponential, please? I was looking at the variogram function in gstat and I think that the gamma values may be part of the solution, but I'm not sure how to finish it out. I'm