Discussion of sines and cosines may provoke memories of https://www.stata-journal.com/articl...article=st0116 In essence,
1. A pair of sine and cosine terms is best considered a double act, like say ... well, insert your own favourites. https://en.wikipedia.org/wiki/Double_act
2. One sine and one cosine term will match a cycle with peak and trough 6 months apart. With environmental data I sometimes find a need for 2 or 3 pairs. Even 3 pairs with 6 coefficients to estimate is more parsimonious than 12 predictors, one for each month.
3. If you have say a spike (up or down) in one month sines and cosines won't work so well. This is precisely why indicator variables for each month are often needed for socio-economic data in which December or August or any month with holiday or vacation effects may be awkward to handle.
1. A pair of sine and cosine terms is best considered a double act, like say ... well, insert your own favourites. https://en.wikipedia.org/wiki/Double_act
2. One sine and one cosine term will match a cycle with peak and trough 6 months apart. With environmental data I sometimes find a need for 2 or 3 pairs. Even 3 pairs with 6 coefficients to estimate is more parsimonious than 12 predictors, one for each month.
3. If you have say a spike (up or down) in one month sines and cosines won't work so well. This is precisely why indicator variables for each month are often needed for socio-economic data in which December or August or any month with holiday or vacation effects may be awkward to handle.
Comment