Written by Ilja J. Kocken Feel free to use this stuff, as long as you adhere to the LICENSE.md
How to calculate bootstrapped averages and apply a clumped-isotope specific temperature calibration.
- Calculate bootstrapped York regression from clumped isotope calibration data.
- Calculate bootstrapped sample means for the age, d13C, d18O, and D47.
- Apply the bootstrapped calibration to calculate temperature and d18Osw.
- Also comes with the classic d18Occ calibrations. See temp_calc().
- As well as the inverses, for when you have constraints on temperature and wish to calculate d18Osw. See d18Osw_calc() .
To use this:
- Install this package
clumpedcalib
, see #installation. - Update the input calibration data dat/example_calib.csv. Make sure the
column names include
X
,D47
,sd_X
,sd_D47
. - Add your sample data at the replicate level.
- Check to see if you like the function that calculates d18Osw. Currently, you can choose from the Kim & O’Neil 1997 calibration, as adjusted by Bemis et al., 1998, or the Marchitto et al., 2014 calibration.
- Create your own definition of filter outliers so that it filters out bad measurements and NA’s for your data.
- Walk through the example workflow step-by-step.
- Have a look at the functions to better understand what’s happening.
The bootstrapped calibration idea is based on a Matlab script written by Alvaro Fernandez.
To install this development package:
remotes::install_github("japhir/clumpedcalib")
Or you can look at all the functions and only copy what you like.