Learn R Programming

beezdemand (version 0.2.0)

calc_observed_pmax_omax: Calculate Observed Pmax/Omax Grouped by ID

Description

Calculate Observed Pmax/Omax Grouped by ID

Usage

calc_observed_pmax_omax(
  data,
  id_var = "id",
  price_var = "x",
  consumption_var = "y"
)

Value

Data frame with observed pmax/omax for each subject

Arguments

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

Examples

Run this code
# \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