Skip to content

Commit

Permalink
Update adj_amt_indiffs
Browse files Browse the repository at this point in the history
  • Loading branch information
kinleyid committed Nov 19, 2024
1 parent 831aada commit 50eed5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ run_optimization <- function(fn, par_starts, par_lims, optim_args, silent = F) {
#' @export
adj_amt_indiffs <- function(data, block_indic = 'del', order_indic = NULL) {

require_columns(data, c('val_imm', 'val_del', 'imm_chosen',
block_indic, order_indic))
validate_td_data(data,
required_columns = c('val_imm', 'val_del', 'imm_chosen',
block_indic, order_indic))

rows <- by(data, INDICES = data[[block_indic]], simplify = F, FUN = function(block) {

Expand Down

0 comments on commit 50eed5a

Please sign in to comment.