The goal of surreal is to implement the methods inside the paper “Residual Sur(Realism)” by Leonard A. Stefanski (2007, TAS, Vol. 61, pp 163-177).
You can install the development version of surreal from GitHub with:
# install.packages("remotes")
remotes::install_github("coatless-rpkg/surreal")
This is a basic example which shows you how to solve a common problem:
library(surreal)
## basic example code