# Vectors:
obs <- seq(10000, 100000, 10000)
state <- c(0, 1, 1, 0, 0, 0, 1, 0, 1, 0)
uic <- c("3435", "1203", "958X", "XX71", "abcd", "tz46",
"fl29", "AX23","Uy12", "kl1a")
# Example - Nelson-Aalen estimator applied to intact and failed units:
tbl_nel <- nelson_method(
x = obs,
status = state,
id = uic
)
Run the code above in your browser using DataLab