powered by
Calculate Observed Pmax/Omax Grouped by ID
calc_observed_pmax_omax( data, id_var = "id", price_var = "x", consumption_var = "y" )
Data frame with observed pmax/omax for each subject
Data frame with id, price, and consumption columns
Name of ID column
Name of price column
Name of consumption column
# \donttest{ data(apt, package = "beezdemand") calc_observed_pmax_omax(apt, id_var = "id", price_var = "x", consumption_var = "y") # }
Run the code above in your browser using DataLab