| older | R Documentation |
A Bayesian test for checking the following assumption: "event x is older
than event y".
older(x, y, ...)
## S4 method for signature 'numeric,numeric'
older(x, y)
## S4 method for signature 'EventsMCMC,missing'
older(x, y)
x |
A |
y |
A |
... |
Currently not used. |
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.
older(x = numeric, y = numeric): Returns a length-one numeric vector (the posterior
probability of the assumption: "event x is older than event y").
older(x = EventsMCMC, y = missing): Returns a numeric matrix of posterior probabilities.
A. Philippe, M.-A. Vibet, N. Frerebeau
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.