trending aims to provides a coherent interface to several modelling tools. Whilst it is useful in an interactive context, it’s main focus is to provide an intuitive interface on which other packages can be developed (e.g. trendbreaker).
Model specification: Interfaces to common models through intuitive functions;
Model fitting and prediction: Once specified, models can be fit to data and generate confidence and prediction intervals for future data using
* Requires brms
Installing the package
You can install the stable version from CRAN with:
The development version can be installed from GitHub with:
Gavin Simpson; Our method to calculate prediction intervals follows one that he described in two posts on his blog; see part 1 and part 2.
John Haman and Matthew Avery; Our implementation of prediction intervals was guided by their bootstrapped approach within the ciTools package.