Learn R Programming

krige (version 0.6.2)

summary.krige: Summarize Fitted Kriging Model

Description

Create a summary of a estimated model from metropolis.krige

Usage

# S3 method for krige
summary(object, ...)

Arguments

object

An krige object from the metropolis.krige function.

Additional arguments passed to summary methods. Not supported for krige object.

Value

A summary.krige list object.

Details

The function creates a summary of the model estimated by metropolis.krige. The output includes both the parameters and estimates of the model.

See Also

as.mcmc.summary.krige

Examples

Run this code
# NOT RUN {
# Summarize data
summary(ContrivedData)

# Initial OLS model
contrived.ols<-lm(y~x.1+x.2,data=ContrivedData)
# summary(contrived.ols)

# Set seed
set.seed(1241060320)

#For simple illustration, we set to few iterations.
#In this case, a 10,000-iteration run converges to the true parameters.
#If you have considerable time and hardware, delete the # on the next line.
#10,000 iterations took 39 min. with 8 GB RAM & a 1.5 GHz Quad-Core processor.
M <- 100
#M<-10000

contrived.run <- metropolis.krige(y ~ x.1 + x.2, coords = c("s.1","s.2"), 
   data = ContrivedData, n.iter = M, range.tol = 0.05)

# Summary
summary(contrived.run)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab