BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
yael
Quartz | Level 8

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

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.

--
Paige Miller

View solution in original post

1 REPLY 1
PaigeMiller
Diamond | Level 26

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.

--
Paige Miller

sas-innovate-2024.png

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.

 

Register now!

What is ANOVA?

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.

Discussion stats
  • 1 reply
  • 1238 views
  • 0 likes
  • 2 in conversation