diff --git a/DESCRIPTION b/DESCRIPTION index 4bf5e4c0..2d193066 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -16,10 +16,12 @@ Imports: stats, survival, DescTools, - MASS + MASS, + boot Suggests: knitr, - testthat (>= 2.0) + testthat (>= 2.0), + ggplot2 VignetteBuilder: knitr biocViews: diff --git a/R/bucher.R b/R/bucher.R index 8d8fd88a..c0b2e02a 100644 --- a/R/bucher.R +++ b/R/bucher.R @@ -24,7 +24,6 @@ #' \item{pval}{p-value of Z-test, with null hypothesis that \code{est} is zero} #' } #' @export -#' @import stats bucher <- function(trt, com, conf_lv = 0.95) { est <- trt$est - com$est diff --git a/R/maic_unanchored_tte.R b/R/maic_unanchored_tte.R index 674cdfd6..9e0fd91d 100644 --- a/R/maic_unanchored_tte.R +++ b/R/maic_unanchored_tte.R @@ -17,8 +17,6 @@ #' } #' #' @return A list of KM plot, analysis table, and diagnostic plot -#' @importFrom survival Surv survfit coxph cox.zph -#' @importFrom graphics par axis lines points legend abline #' @export maic_tte_unanchor <- function(useWt, dat, dat_ext, trt, trt_ext, diff --git a/R/maicplus.R b/R/maicplus.R new file mode 100644 index 00000000..67fefe2b --- /dev/null +++ b/R/maicplus.R @@ -0,0 +1,30 @@ +#' maicplus: open source R package for MAIC +#' +#' A package for running matching adjusted indirect comparison +#' +#' This package facilitates performing matching adjusted indirect comparison +#' (MAIC) analysis where the endpoint of interest is either time-to-event +#' (e.g. overall survival) or binary (e.g. objective tumor response). +#' +#' @docType package +#' @name maicplus-package +#' +#' + +#' @import graphics +NULL + +#' @import stats +NULL + +#' @import survival +NULL + +#' @import DescTools +NULL + +#' @import MASS +NULL + +#' @import boot +NULL \ No newline at end of file diff --git a/R/matching.R b/R/matching.R index 858208a9..5b0e03c7 100644 --- a/R/matching.R +++ b/R/matching.R @@ -113,7 +113,6 @@ estimate_weights <- function(data, centered_colnames = NULL, start_val = 0, meth #' @param main_title a character string, main title of the plot #' #' @return a plot of unscaled or scaled weights -#' @importFrom graphics hist #' @export plot_weights <- function(wt, bin_col = "#6ECEB2", vline_col = "#688CE8", main_title = "Unscaled Individual Weights") {