BookmarkSubscribeRSS Feed
igsteo
Calcite | Level 5

Hi,

 

I am currently working on multiple CAPM models and i have to calculate the returns for each of the stock by using the intercept result from each regression output. Is SAS able to output a new dataset that summarizes only intercept results from the regression output? If so, what is the code?

 

Thank you for all the help rendered.

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Yes, if you used a BY statement in your code, then all the intercepts ought to be placed in a single output file. But to give you exact code to do this, we need to see what code you are using.

--
Paige Miller
Ksharp
Super User
Using option PROC REG + OUTEST= get these estimator,
And use PROC APPEND to combine all these estimator.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1098 views
  • 0 likes
  • 4 in conversation