Hello!
I am really new to Stata so I hope this question isn't too easy for this forum but my problem is the following:
I have annually observations of ~500 companies over the last 20 years. What I am looking for is one table that generates the median, mean and number of observations for the cash, leverage and long-term debt in all companies balance sheets.
The structure should be as follows:
Year Cash Average_Cash Median_Cash Average_Leverage (.....)
1992 xxxx xxxx xxxx xxxx
1993 xxxx xxxx xxxx xxxx
xxxx xxxx xxxx xxxx xxxx
I know its possible with "tabstat" and "Stats" to get the statistics for one variable but I didnt find out how to do it with many variables without creating more than one table.
I would really appreciate your help! Thanks in advance.
I am really new to Stata so I hope this question isn't too easy for this forum but my problem is the following:
I have annually observations of ~500 companies over the last 20 years. What I am looking for is one table that generates the median, mean and number of observations for the cash, leverage and long-term debt in all companies balance sheets.
The structure should be as follows:
Year Cash Average_Cash Median_Cash Average_Leverage (.....)
1992 xxxx xxxx xxxx xxxx
1993 xxxx xxxx xxxx xxxx
xxxx xxxx xxxx xxxx xxxx
I know its possible with "tabstat" and "Stats" to get the statistics for one variable but I didnt find out how to do it with many variables without creating more than one table.
I would really appreciate your help! Thanks in advance.
Comment