beezdemand_calc_pmax_omax_vec: Calculate Pmax/Omax for Multiple Subjects

View source: R/pmax-omax-engine.R

beezdemand_calc_pmax_omax_vecR Documentation

Calculate Pmax/Omax for Multiple Subjects

Description

Calculate Pmax/Omax for Multiple Subjects

Usage

beezdemand_calc_pmax_omax_vec(
  params_df,
  model_type,
  param_scales = NULL,
  price_list = NULL,
  consumption_list = NULL,
  ...
)

Arguments

params_df

Data frame with one row per subject, containing parameter columns

model_type

Character: model type (same for all subjects)

param_scales

Named list of parameter scales

price_list

Optional list of price vectors (one per subject)

consumption_list

Optional list of consumption vectors (one per subject)

...

Additional arguments passed to beezdemand_calc_pmax_omax

Value

Data frame with pmax/omax results for each subject

Examples


params_df <- data.frame(
  alpha = c(0.001, 0.002),
  q0 = c(10, 15),
  k = c(3, 3)
)
beezdemand_calc_pmax_omax_vec(params_df, model_type = "hs")


beezdemand documentation built on March 3, 2026, 9:07 a.m.