I am trying to run a linear regression with the Tesla stock prices as the dependent variable and the date as the independent variable. But I cannot do this as I need to convert the date into an integer of some sort in order to run the regression. Would anyone know how I can do this?
This is the data I am working with:
Tesla Stock Prices after Stock Split