BookmarkSubscribeRSS Feed
Princeelvisa
Obsidian | Level 7

Hello Everyone,

I have mutual funds data at the quarterly level. I have funds percentage holdings in stocks. I want to run a cross-sectional regression of these funds' percentage holdings on two or three independent variables, which are at the stock level. Each fund has at least 10 stocks. I want the regression by fund per quarter. How do I output the partial r-squared for one independent variable for each fund per quarter after the cross-sectional regression. one of the independent variables is a dummy variable.

Any help, please?

Thank you

2 REPLIES 2
ballardw
Super User

Can you show anything related to which regression you are attempting?

 

Note if your dummy variable is doing something related to indicating which level of a categorical variable the record represents you might find the the SAS CLASS statement to indicate category variables is useful and save work creating such dummy variables. Most of the regression procedures support such. Then you include the Class variable(s) in Model statement.

Princeelvisa
Obsidian | Level 7

Princeelvisa_0-1686820362002.png

This is the model i want to run. where i is stock, m denotes fund and t is quarter. So a cross-sectional regression for partial-squared for the first independent variable for each fund per quarter. Thank you.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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