Lab 2: A simulation study in geoR


Today's computing exercise is to design and implement a simulation study of variogram estimation methods. To do so, you need to generate data from a Gaussian random field with a covariance function of your choice, estimate the parameters in different ways, and compare the estimators. You may want to generate the data at the same points as the Parana data set in geoR. Be careful with how you choose the parameters of your simulation, so that there is a reasonable level of covariance over most of the range of the coordinates.

Projects might consider addressing one or more of the following:

I suggest working in groups of two or three (Steve: you may want to work with the group at UBC-V. You should be able to exchange computer images etc using the system). A written report of at most 3 pages (not including code which can go in an appendix) is due by Feb 5. Let me know if you need more time to work on the project--we could spend some time next Thursday as well if needed.

The following functions may be useful:

grf simulates a Gaussian random field
variofit estimates parameters using least squares
likfit estimates parameters using likelihood
krige.bayes estimates parameters using Bayesian methods

There are also plotting tools, such as

plot.grf plots empirical variogram from grf simulations
lines.variomodel.* adds appropriate (according to *) variogram lines to plots
Here .* can be .grf, .krige.bayes, .likGRF, .variofit or nothing
plot.krige.bayes plots prior and posterior distributions from krige.bayes