Hi,
I am a newbie with STATA and working with it for my thesis. So, I have a dataset of companies from 2000-2019 with their information such as (industry codes, debt, equity, assets, etc.).
Now, I have grouped the companies based on the SIC codes to find out the number of companies in each industry.
I am having a problem in 2 areas:
1. I want to find the mean value of debt in every industry.
2. I want to find the mean value of debt for every year for the whole sample
How can I go about doing these?
egen tocount = tag(c_id SIC_ID) (This is what I have for now to count for companies within a specific SIC code).
Thanks in advance!
Related Posts with Finding mean value of a column based on year
Missing dataI am looking to analyze missing data so I tried with command mdesc and summ but it came back with no…
No Observation Error with correlationHi everyone, I'm very new to Stata and I am very confused my this error. I have created two variable…
Importing multiple excel worksheets using a loopHello everyone, I have a single excel file that has multiple worksheets, the worksheets are named C…
Lag length in panel data Dear Statalisters, I have an unbalanced panel and was looking for a way to determine optimal lag le…
Error message when conducting Heckman correlation testDear all, I am trying to use the Heckman correlation test to investigate the possibility of a selec…
Subscribe to:
Post Comments (Atom)
0 Response to Finding mean value of a column based on year
Post a Comment