Combine several CTest results by multiplying their densities
Source:R/ctest_combine.R
ctest_combine.RdReproduces the combination step of mmc8 (reconstruct_parameters_Devonian.R), using a base-R weighted quantile instead of Hmisc::wtd.quantile.
Arguments
- results
CTest results to combine (list, ideally named): each element is a
ctestobject fromctestor a numeric vector of samples (e.g. precession constants in years). The kernel densities of all elements are multiplied. Required, no default.- what
Column of the
samplesdata frame of thectestobjects that is combined (character), e.g."k"(precession constant, yr),"SR"(sedimentation rate, m/kyr),"obl_ks3"or"g2"; ignored for numeric vectors.Default="k".- n
Number of points of the grid on which the densities are evaluated and multiplied (integer, > 1).
Default=1000.