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.
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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
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.