layer_clouds
and a set of chronologies
climate_histories(layer_clouds,
chronology,
time_grid,
n_mix=10,
mix_warnings=FALSE,
n_chron=2000,
keep_parameters=TRUE,
control_mcmc=list(iterations=100000, burnin=20000, thinby=40, report=100),
control_chains=list(v_mh_sd=2, phi1_mh_sd=1, phi2_mh_sd=10, v_start=statmod::rinvgauss(layer_clouds$n_layers-1,2,1), Z_start=sample(1:n_mix, layer_clouds$n_layers, replace=TRUE), phi1_start=rep(3,layer_clouds$n_dimensions), phi2_start=rep(20,layer_clouds$n_dimensions)),
control_priors=list(phi1_dl_mean=rep(1.275,layer_clouds$n_dimensions), phi1_dl_sd=rep(0.076,layer_clouds$n_dimensions), phi2_dl_mean=rep(4.231,layer_clouds$n_dimensions), phi2dl_sd=rep(0.271,layer_clouds$n_dimensions)))
layer_clouds
obtained from layer_clouds
keep_parameters
is TRUE)layer_clouds
uses a set of algorithms to produce cliamte histories on the provided time grid. The full details are in the paper referenced below. The options listed above allow quite a detailed level of control over the behaviour of the algorithm, and convergence should be checked using suitable means (see e.g. the R package boa or coda).One of the key inputs to this function is a chronology. This should be a matrix of n_chron by n_layers containing sample chronologies as produced by, e.g. the R package Bchron. These are used by the climate_histories
function to take account of chronological uncertainty. In the (unlikely) event that there is no chronological uncertainty, the rows of the chronologies can be identical.
layer_clouds
for producing the input for this function. See plot.climate_histories
and summary.climate_histories
for plotting and summary detailsFor examples why not see the wonderful Bclim vignette (available at https://cran.r-project.org/web/packages/Bclim/index.html) and the authors personal webpage (http://mathsci.ucd.ie/~parnell_a/Bclim.html)?