R/filter_by.R

Defines functions vi_filter_by ol_filter_by ib_filter_by U_filter_by Ustar_filter_by

# helper functions so don't have to remember
# which dimension for which statistic

Ustar_filter_by <- function(he, wtp) {
  he$Ustar[, he$k == wtp]
}

U_filter_by <- function(he, wtp) {
  he$U[, he$k == wtp, ]
}

ib_filter_by <- function(he, wtp) {
  he$ib[he$k == wtp, , ]
}

ol_filter_by <- function(he, wtp) {
  he$ol[, he$k == wtp]
}

vi_filter_by <- function(he, wtp) {
  he$vi[, he$k == wtp]
}
giabaio/BCEA documentation built on March 27, 2024, 5:32 p.m.