Hello Forum,
After long time I here again to ask for your help, which is great always...
I want to run regression that the dependent variable is ROA4 while the Lnsalesgro, lnsales, RDAssets, LTSTassets are the independent variables. The procedure is as follow:
proc reg data=sasuser.sasfile010916;
model roa4 = Lnsalesgro lnsales RDAssets LTSTassets;
run;
How should I write it if I want that ROA4 will be always from t-1 (the year before). It means, for example, that the ROA4 will be taken from 2003 while the Lnsalesgro lnsales RDAssets LTSTassets from 2004?
Thanks for any help,
Yael
The easiest thing to do is to perform this alignment of years that you describe in a SAS data set prior to the PROC REG call.
The easiest thing to do is to perform this alignment of years that you describe in a SAS data set prior to the PROC REG call.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.