Examples

In this folder I collect simple examples on emulation, history matching, calibration. The goal is to help new users understand the typical workflow and the use of existing R packages and the functions in the ExeterUQ code base.

Currently implemented examples

  • Simple emulator: Building a simple emulator for a 1-dimensional function.
  • DiceKriging: A simple emulation using the R package DiceKriging
  • Emulator for CanAM4: Emulating the Canadian climate model with DiceKriging. Some nice diagnostic plots.

The toolchain: R-markdown, knitr, make

The examples are written as R-markdown (*.Rmd) files (markdown with embedded R code). These files are compiled to pure markdown (*.md) using the R package knitr and a Makefile. For example, to generate the file simple-emulator.md from the file simple-emulator.Rmd run

make simple-emulator

Do not edit the md files by hand, but apply any changes to the Rmd files and run make. If desired, the markdown files can be compiled further to html or pdf using the tool pandoc.