# NOT RUN {
# }
# NOT RUN {
data(wuhan_exported)
data <- subset(wuhan_exported, Location == "Hefei")
data$B <- data$B - 0.75
data$E <- data$E - 0.25
data$S <- data$S - 0.5
# Conditional likelihood inference
bets.inference(data, "conditional")
bets.inference(data, "conditional", "bootstrap", bootstrap = 100, level = 0.5)
# Unconditional likelihood inference
bets.inference(data, "unconditional", L = 54)
# Conditional likelihood inference for data with right truncation
bets.inference(subset(data, S <= 60), "conditional", M = 60)
# Conditional likelihood inference with r fixed at 0 (not recommended)
bets.inference(data, "conditional", r = 0)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab