View source: R/pmax-omax-engine.R
| beezdemand_calc_pmax_omax_vec | R Documentation |
Calculate Pmax/Omax for Multiple Subjects
beezdemand_calc_pmax_omax_vec(
params_df,
model_type,
param_scales = NULL,
price_list = NULL,
consumption_list = NULL,
...
)
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 |
Data frame with pmax/omax results for each subject
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.