R/calc_DePlateau.R
calc_DePlateau.RdThis function repeatedly fits a single saturating exponential to ESR data and calculates the De while removing the highest datapoint datapoint after each iteration. It then creates a DE-DEmax-Plot after Schellmann & Radtke (2001) where the DE is plotted against the number of datapoints used for fitting.
calc_DePlateau(input.data, min.DosePoints = 5, fit.weights = "equal", model = "EXP", mean.natural = FALSE, show.grid = TRUE, output.console = TRUE, ...)
| input.data |
|
|---|---|
| min.DosePoints |
|
| fit.weights |
|
| model |
|
| mean.natural |
|
| show.grid |
|
| output.console |
|
| ... |
Returns terminal output and a plot. In addition, a list is returned containing the following elements:
data frame containing the De (datapoints n, De, De.Error, max.Dose).
Fitting methods
For fitting of the dose response curve the
nls function with the port algorithm is used. A single
saturating exponential in the form of $$y = a*(1-exp(-(x+c)/b))$$ is
fitted to the data. Parameters b and c are approximated by a linear fit
using lm.
Fit weighting
If 'equal' all
datapoints are weighted equally. For 'prop' the datapoints are
weighted proportionally by their respective ESR intensity: $$fit.weights
= 1/intensity/(sum(1/intensity))$$ If individual errors on ESR intensity are
available, choosing 'error' enables weighting in the form of:
$$fit.weights = 1/error/(sum(1/error))$$
Fitting of the dose response curve using fit_DRC is
largely derived from the plot_GrowthCurve function of the
'Luminescence' package by Kreutzer et al. (2012).
Fitting
methods
Currently, only fitting of a single saturating exponential is
supported. Fitting of two exponentials or an exponential with a linear term
may be implemented in a future release.
Galbraith, R.F. & Roberts, R.G., 2012. Statistical aspects of
equivalent dose and error calculation and display in OSL dating: An overview
and some recommendations. Quaternary Geochronology, 11, pp. 1-27.
Kreutzer, S., Schmidt, C., Fuchs, M.C., Dietze, M., Fischer, M., Fuchs, M.,
2012. Introducing an R package for luminescence dating analysis. Ancient TL,
30 (1), pp 1-8.
# NOT RUN { ##load example data data(ExampleData.De, envir = environment()) #calculate and plot De-Dmax Plateau calc_DePlateau(input.data = ExampleData.De, min.DosePoints = 5, fit.weights = 'prop', show.grid = TRUE, output.console = FALSE) # }