R/ModelConstruct.R

Defines functions ModelConstruct

Documented in ModelConstruct

#' Specify the Model Formula using Population as an Offset and Cases as the Outcome
#'
#' @param Preds A character vector containing variable names.
#'
#' @return A character string containing the model formula
#' @export
#'
#' @examples
#' 
ModelConstruct <- function(Preds) {
  paste0('Cases ~ ', paste(Preds, collapse = ' + '), ' + offset(log(Population))')
}
seabbs/DirectEffBCGPolicyChange documentation built on Dec. 14, 2019, 9:24 p.m.