Learn R Programming

beezdemand (version 0.2.0)

beezdemand_calc_pmax_omax_vec: 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,
  ...
)

Value

Data frame with pmax/omax results for each subject

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

Examples

Run this code
# \donttest{
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")
# }

Run the code above in your browser using DataLab