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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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