Description Usage Arguments Value Author(s) Examples
Transfer an unconstrained age perturbation process into a constrained perturbation process following the Brownian Bridge concept, assuming an age control point where the age uncertainty is taken to be zero.
1 | BrownianBridge(x, t, acp)
|
x |
numeric vector of the perturbed ages from the unconstrained
process; must be of the same length as |
t |
numeric vector with the original (reference) ages. |
acp |
the age control point where the age uncertainty is assumed zero. |
Numeric vector of the same length as t
with the perturbed
ages following a Brownian Bridge process.
Thomas Münch
1 2 3 4 5 6 7 8 9 10 11 12 | t <- 100 : 0
ns <- 100
bam <- BAM(t, ns = ns)
bb <- bam$Tp
bb[, 1, ] <- apply(bam$Tp[, 1, , drop = FALSE], c(2, 3), BrownianBridge,
bam$tp, acp = 1)
plot(t, t, type = "n", xlim = c(100, 0), ylim = c(100, 0),
xlab = "Original time", ylab = "Perturbed time")
for (i in 1 : ns) {
lines(bam$tp, bb[, 1, i], col = "grey", lwd = 1)
}
abline(0, 1, lwd = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.