BookmarkSubscribeRSS Feed
Ahmad
Calcite | Level 5

Hi every one i have data for 300 stocks for a period of 7 years.

every stock has a classification, which has three categories NM  N1 N

i want to estimate 3 portfolios updated every year to include only firms which adher to the classification.

and then i want to estimate the following equation using SUR (seemingly unrelated regression)

Rpt= Apt + b1 Xpt + b2 Zpt +........... + e

data is come thing like this

input yrwk  stock  classif  liq  Return Marketreturn  .......

200601     abc     N1     .02     .1     .3    

200602     abc     N1     .06     .04     .4    

.

.

200701     abc     N1     .03     .04     .06

200601     xyz     NM     .05     .06     .06

200602     xyz     NM     .015     .046     .04

.......

....

200701     xyz     NM     .015     .046     .04

200601   qsd    N    .05     .06     .06

200602     qsd     N    .015     .046     .04

.......

....

200701     Qsd    N     .015     .046     .04;

end;

run;

Any help would be highly appreciated

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!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 713 views
  • 0 likes
  • 1 in conversation