View source: R/pmax-omax-engine.R
| calc_observed_pmax_omax | R Documentation |
Calculate Observed Pmax/Omax Grouped by ID
calc_observed_pmax_omax(
data,
id_var = "id",
price_var = "x",
consumption_var = "y"
)
data |
Data frame with id, price, and consumption columns |
id_var |
Name of ID column |
price_var |
Name of price column |
consumption_var |
Name of consumption column |
Data frame with observed pmax/omax for each subject
data(apt, package = "beezdemand")
calc_observed_pmax_omax(apt, id_var = "id", price_var = "x", consumption_var = "y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.