BookmarkSubscribeRSS Feed
SHK
Calcite | Level 5 SHK
Calcite | Level 5

I have a data set including stock_name, stock_price, volume, date, liquidity, and volatility. 

I want to regress the other variables on stock_price using the panel data analysis methods in three ways.

 

1. fixed effects on stock_name only

2. fixed effects on time only

3. fixed effects on stock_name and time at the same time

 

How can I estimate the three regression models each?

I'm using sas9.4.

 

Thanks.

 

 

1 REPLY 1
ebowen
Quartz | Level 8

Have you tried using PROC PANEL? You should be able to specify one-way and two-way fixed and random effects using the options in the model statement:

 

proc panel data=data;
   id stock_name date;
   model stock_price = volume liquidity volatility / fixone (or fixtwo);
run;

 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1190 views
  • 0 likes
  • 2 in conversation