maketemps | R Documentation |
The function is used to create lagged temperature variables for model estimation.
maketemps(x, temp_sites, periods = 48)
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) |
The complete data frame that can be used for model estimation.
Rob J Hyndman and Shu Fan
R. J. Hyndman and S. Fan (2010) "Density Forecasting for Long-term Peak Electricity Demand", IEEE Trans. Power Systems, 25(2), 1142–1153.
sa
,
demand_model
sa <- maketemps(sa,2,48)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.