aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorNaeem Model <me@nmode.ca>2023-06-21 06:30:42 +0000
committerNaeem Model <me@nmode.ca>2023-06-21 06:30:42 +0000
commit412a488bf6a6cfe6fa03a0912aa2ab0b58ba7c77 (patch)
treec23304011b7723ff95d4cb8b454ebe8c6d0980b2 /R
parent9d7b542a1eb1eead875ad7f939936e4d8ac83145 (diff)
Add local imports
Diffstat (limited to 'R')
-rw-r--r--R/WP.R3
-rw-r--r--R/WP_unknown.R3
2 files changed, 6 insertions, 0 deletions
diff --git a/R/WP.R b/R/WP.R
index 8d528d5..a0290d3 100644
--- a/R/WP.R
+++ b/R/WP.R
@@ -1,3 +1,6 @@
+source("WP_known.R")
+source("WP_unknown.R")
+
#' WP method
#'
#' This function implements an R0 estimation due to White and Pagano (Statistics in Medicine, 2008).
diff --git a/R/WP_unknown.R b/R/WP_unknown.R
index ebb7cc7..569a880 100644
--- a/R/WP_unknown.R
+++ b/R/WP_unknown.R
@@ -1,3 +1,6 @@
+source("computeLL.R")
+source("WP_known.R")
+
#' WP method background function WP_unknown
#'
#' This is a background/internal function called by \code{WP}. It computes the maximum likelihood estimator