maketemps: Create lagged temperature variables

Description Usage Arguments Value Author(s) References See Also Examples

Description

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

Usage

1
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.

Author(s)

Rob J Hyndman and Shu Fan

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

1
sa <- maketemps(sa,2,48)

robjhyndman/MEFM-package documentation built on May 27, 2019, 11:39 a.m.