maketemps: Create lagged temperature variables

View source: R/maketemps.R

maketempsR Documentation

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.

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

sa <- maketemps(sa,2,48)


robjhyndman/MEFM-package documentation built on June 14, 2024, 11:20 a.m.