older {ArchaeoPhases} | R Documentation |
Bayesian Test for Anteriority/Posteriority
Description
A Bayesian test for checking the following assumption: "event x
is older
than event y
".
Usage
older(x, y, ...)
## S4 method for signature 'numeric,numeric'
older(x, y)
## S4 method for signature 'EventsMCMC,missing'
older(x, y)
Arguments
x |
A |
y |
A |
... |
Currently not used. |
Details
For a given output of MCMC algorithm, this function estimates the posterior
probability of the event x < y
by the relative frequency of the event
"the value of event x
is less than the value of event y
" in the
simulated Markov chain.
Methods (by class)
-
older(x = numeric, y = numeric)
: Returns a length-onenumeric
vector (the posterior probability of the assumption: "eventx
is older than eventy
"). -
older(x = EventsMCMC, y = missing)
: Returns anumeric
matrix of posterior probabilities.
Author(s)
A. Philippe, M.-A. Vibet, N. Frerebeau
Examples
## Coerce to MCMC
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
eve <- eve[1:10000, ]
## Test for anteriority
older(eve)
## Test for hiatus
hia <- hiatus(eve)
as.data.frame(hia)