BookmarkSubscribeRSS Feed
Daouja
Calcite | Level 5

Hi eveyone,

I have a data of thousands of companies (that means that in my SAS database I have thousands of rows) and each company has its capital structure  . So I want to compute power indices of each shareholders in each company (e.g. Normalised Banzhaf index, Banzhaf index, Shapley-Shubik Indices, Shapley-Shubik indices for an "oceanic" game,  ...).

It is easy to compute these indices individually, and there are many web sites that can do this "company by company", but the problem that I have is: I can't compute thousands of cases one by one and I need a code/program to do that, if possible, in one command.

I use SAS to do my econometrics analysis and I have not an advanced knowledge in SAS Coding.

Does somebody have a SAS code to compute power indices? Does somebody can help me to develop a code for these power indices?


Thank you in advance.

1 REPLY 1
mkeintz
PROC Star

Please show a sample of the data for a couple of companies, in a sas data step.  Nobody can make a programming recommendation without knowing the data layout and some data values.

 

And then show what you would like the output to look like for your example input data.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

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
  • 1 reply
  • 892 views
  • 0 likes
  • 2 in conversation