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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1604 views
  • 0 likes
  • 2 in conversation