calc_observed_pmax_omax: Calculate Observed Pmax/Omax Grouped by ID

View source: R/pmax-omax-engine.R

calc_observed_pmax_omaxR Documentation

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"
)

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

Value

Data frame with observed pmax/omax for each subject

Examples


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


beezdemand documentation built on March 3, 2026, 9:07 a.m.