powered by
Calculate Pmax/Omax for Multiple Subjects
beezdemand_calc_pmax_omax_vec( params_df, model_type, param_scales = NULL, price_list = NULL, consumption_list = NULL, ... )
Data frame with pmax/omax results for each subject
Data frame with one row per subject, containing parameter columns
Character: model type (same for all subjects)
Named list of parameter scales
Optional list of price vectors (one per subject)
Optional list of consumption vectors (one per subject)
Additional arguments passed to beezdemand_calc_pmax_omax
# \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