# 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 1 - Johnson method for intact and failed units:
tbl_john <- johnson_method(
x = obs,
status = state,
id = uic
)
# Example 2 - Johnson's method works also if only defective units are considered:
tbl_john_2 <- johnson_method(
x = obs,
status = rep(1, length(obs))
)
Run the code above in your browser using DataLab