MEFM (version 2.2)

maketemps: Create lagged temperature variables

Description

The function is used to create lagged temperature variables for model estimation.

Usage

maketemps(x, temp_sites, periods = 48)

Arguments

x

Data frame including temperature observations from 1 or 2 weather stations

temp_sites

The number of weather stations, select between 1 and 2

periods

The periods within a day, choose between 48 (half-hourly data) and 24 (hourly data)

Value

The complete data frame that can be used for model estimation.

References

R. J. Hyndman and S. Fan (2010) "Density Forecasting for Long-term Peak Electricity Demand", IEEE Trans. Power Systems, 25(2), 1142--1153.

See Also

sa, demand_model

Examples

Run this code
sa <- maketemps(sa,2,48)

Run the code above in your browser using DataLab