I would like to include seasonality analysis in my model using a*sin(x)+b*cos(x)
, as where x is the day of the year.
For example "1990-1-1"
retures 1
; or like "1990-1-10"
retures 10
.
Also, since my data is in hourly base, what I was planning to do is to find out of the day of the year then times it by 24 then plus the striped out "hour number" to represents its order within a year. Could you also let me know if there are any better ways to do that.
Format your dates and you're done: