Some R
examples
- [Plot two series in one plot]
- [Plotting historical data, forecast and realization]
- [An exploration of plot commands]
- [Plotting three points on a demand curve]
- [Estimating an AR(2) model and produce forecast for horizon h=1,2,3,4,5,6]
- [Estimating an AR(2) + Linear Trend model and produce forecast for horizon h=1,2,3,4,5,6]
- [Example: Distributed lags regression and forecast. Assume two distributed lags, and forecasts are produced for h=1,3]
- [Example: Recursive forecasting scheme + Testing equal performance in terms of expected squared loss + Mincer Zarnowitz regression]
- [Example: The use of "arima" to produce forecast, without xreg]
- [Example: The use of "arima" to produce forecast, with xreg]
- [Simulating the monthly investment of a fixed amount of money]
- [Sorting a matrix by a specific column]
- [Producing an "animated" plot]
- How to use the name of a variable as a string? deparse(substitute(x))
Some FAQ I found useful