Hello,
I have a panel data consisting data for four (4) different region (i.e. Canada, Hong Kong, New Zealand & UK). I would like to run an OLS time series regression for each individual region but I do not know how what specific codes to write.
Any suggestion will be much appreciated.
Best Regards,
Grant001.
Here's some resources that may be helpful:
Linear Regression tutorial
Videos
Documentation:
More specifically, click on Examples to see fully worked examples.
If you have specific questions feel free to post back, but please include more details, specifically, sample data or code and a clear explanation of your problem.
Hi Reeze,
Thank you for your response.
My panel data-set is set up in this manner (picture attached below). What I really want to do is to run an individual OLS time series regression for Canada and then a separate OLS time series regression for Hong Kong, and so forth.
What may be the appropriate code to write in-order for SAS to filter down and run the regression for the specific region while leaving others out.
That's what BY group processing does.
So once you have your model built, add a line that is :
By country;
And the regression will run for each country individually.
Hi Reeza,
Thank you very much for your help.
Much appreciated.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.