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

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!
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
  • 675 views
  • 0 likes
  • 1 in conversation