]> nmode's Git Repositories - Rnaught/blobdiff - R/server.R
Refactor seqB
[Rnaught] / R / server.R
index 4cf87db6cb0cc15c66fc364e8e29a8dcdcee65de..384b341d6f10eb7eaab383b977890390fdd345b3 100644 (file)
@@ -299,8 +299,8 @@ eval_estimator <- function(input, output, estimator, dataset) {
   }
   # Sequential Bayes
   else if (estimator$method == "seqB")
-    estimate <- round(seqB(unlist(dataset[3]), mu = serial,
-                           kappa = estimator$kappa)$Rhat, 2)
+    estimate <- round(seq_bayes(unlist(dataset[3]), mu = serial,
+                           kappa = estimator$kappa), 2)
   # Incidence Decay
   else if (estimator$method == "ID")
     estimate <- round(id(unlist(dataset[3]), mu = serial), 2)