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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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