Let’s take the following apple data- say we want to find out, with all else constant, how does the stock price of Apple vary year-by-year? In this example, I created a data set listing Price, or the price of apple stock at the 1st of that year, where Days, is the number of days between Jan 1, 2013, when this stock price recording begins, til Jan 1, 2023, at a yearly interval.
## Days Price
## 1 0 18.82
## 2 365 19.31
## 3 730 27.33
## 4 1095 24.28
## 5 1461 30.00
## 6 1826 44.27
## 7 2129 39.06
## 8 2556 77.58
## 9 2922 139.07
## 10 3287 172.17
## 11 3652 137.81