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 from a time series and I want the thirteenth forecast. Behind some searches I checked that the "proc reg" procedure 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 rows. Does anyone know a solution, or some function that I can use and replace the proc's call? Thank you.