0
I’m working on a project where I develop trend change indicators. One of them involves linear regression looking at 12 months, that is, I enter with 12 consecutive points of a time series and I want the prediction of the thirteenth. Behind some researches I checked that the procedure "proc reg" returns the point I need. However, I have to do this procedure thousands of times, because I only get the point if I make a table with 13 lines. Does anyone know a solution, or any function I can use and replace the proc reg call? Thank you.