- if (method == "known") {
- if (mu=="NA") {
- res <- "NA"
- print("For method=known, the mean of the serial distribution must be specified.")
- } else {
- print("You have assumed that the serial distribution is known.")
- range.max <- ceiling(qexp(tol, rate=1/mu))
- p <- diff(pexp(0:range.max, 1/mu))
- p <- p / sum(p)
- res <- WP_known(NT=NT, p=p)
- Rhat <- res$Rhat
- JJ <- NA
- }
- }
-
- return(list(Rhat=Rhat, check=length(JJ), SD=list(supp=1:range.max, pmf=p), inputs=list(NT=NT, mu=mu, method=method, search=search, tol=tol)))
+ return(list(Rhat=Rhat, check=length(JJ), SD=list(supp=1:range.max, pmf=p)))