Interpolate Between Two Dates
Usage
interpolate(x, y, ...)
# S4 method for numeric,numeric
interpolate(x, y)
# S4 method for EventsMCMC,missing
interpolate(x, e1 = 1, e2 = 2)
Arguments
- x
A numeric
vector giving the output of the MCMC algorithm for the
first parameter.
- y
A numeric
vector giving the output of the MCMC algorithm for the
second parameter.
- ...
Currently not used.
- e1, e2
An integer
specifying.
Details
For a given output of MCMC algorithm, this function interpolates between
to events \(x\) and \(y\) (assuming \(x < y\)).
See also
Other age-depth modeling tools:
bury()
,
proxy()
Examples
## Coerce to MCMC
eve <- as_events(events, calendar = "CE", iteration = 1)
eve <- eve[1:10000, ]
## Interpolate between two events
inter <- interpolate(eve, e1 = 2, e2 = 3)
plot(inter, level = 0.95, interval = "credible")
#> Picking joint bandwidth of 24.3