interpolate_date: Interpolate a radiocarbon date from a given depth below the...

Description Usage Arguments Details Value See Also Examples

Description

This function calculates the age at a specific depth below the surface. It uses lowess interpolation to estimate a reasonable age, give the known ages of the deposit. It assumes you have already got the data from the Google sheet.

Usage

1
  interpolate_date(my_data, depth_in_m, span = 0.75, ...)

Arguments

my_data
span

the parameter α which controls the degree of smoothing for the loess interpolation. Default is 0.75. From stats::loess

Details

Lowess works by fitting a weighted linear model to a local subset of the data. So we cannot interpolate ages for depths less than the shallowest date or greater than the deepest date, where we have no date data. To compute dates for those depths we need to extrapolate. Reliable non-linear statistical methods of extrapolation are hard to find (I don't think there are any), so we're better off just eye-balling the values from a depth-age plot. If you try to compute an age for a depth outside of the range of dated samples this function will return NA

Value

An age estimate for the depth provided

See Also

get_data

Examples

1
2
3
my_data <- get_data()
 my_date_plot <- plot_dates(my_data)
 interpolate_date(my_data, 1.20) # where 1.20 is the depth in meters

benmarwick/au13uwgeoarchlab documentation built on May 12, 2019, 1:01 p.m.