R/calculate_nmb.R

Defines functions calculate_nmb

  calculate_nmb <- function(slice, wtp) {
    cost <- slice[, 1]
    utility <- slice[, 2]
    nmb <- wtp * utility - cost
    return(nmb)
  }
  

Try the twig package in your browser

Any scripts or data that you put into this service are public.

twig documentation built on April 12, 2025, 2:08 a.m.