a <- .001
b <- .07
x <- 0:100
mx1 <- a * exp(x * b)
mx2 <- a/2 * exp(x * b)
cc <- arriaga(mx1, mx2, age = x)
# examples can come from above too
s <- sen_arriaga(mx1, mx2, age = x)
# \donttest{
plot(x, s)
# }
cc_check <- s * (mx2 - mx1)
# \donttest{
plot(x,cc)
lines(x,cc_check)
# }
Run the code above in your browser using DataLab