Tools for estimating and predicting the cosinor model