R/total_drug_cost.R

Defines functions total_drug_cost

Documented in total_drug_cost

#' Calculate Total Drug Costs Per Day
#'
#' @param drug
#' @param weight
#'
#' @return
#' @export
#'
#' @examples
total_drug_cost <- function(drug,
                            weight = 1){

  with(drug, (cost_per_batch*dose_mg_day*weight)/(pill_per_batch*dose_per_pill))
}
n8thangreen/VANTDET documentation built on May 28, 2020, 8:27 a.m.