# NOT RUN {
# Summarize Data
summary(ContrivedData)
#Initial OLS Model
contrived.ols<-lm(y~x.1+x.2,data=ContrivedData);summary(contrived.ols)
#Define Covariate Matrix
covariates<-cbind(1,ContrivedData$x.1,ContrivedData$x.2)
# Find the posterior density for the Contrived Data if all parameters were 1:
s.test <- krige.posterior(tau2=1,phi=1,sigma2=1,beta=rep(1,ncol(covariates)),
y=ContrivedData$y,X=covariates,east=ContrivedData$s.1,north=ContrivedData$s.2)
# Print posterior density
s.test
# }
Run the code above in your browser using DataLab