statrefs home‎ > ‎Main‎ > ‎Methods‎ > ‎Time Series‎ > ‎Simple Moving Average‎ > ‎

Simple Moving Average - Example 1 (R)


Notes and Considerations

The code and results/output are in the file "CH02 Example 2-2 Simple Moving Average.docx" attached below.



Data Set

 

Moving Averages of Whole Foods Market stock price

Data from Table B7

Available at the bottom of the book page Introduction to Time Series Analysis and Forecasting (Montgomery) in the file "DATA Time Series and Forecasting Appendix B Tables.xls"


Also embedded in the R script file below.



Analysis or Script File

 
See the file "CH02 Example 2-2.R" attached below.




Comments