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
Lognormal hurdle model in Stata 12I am using Code: nehurdle command in Stata12 (ssc install nehurdle). I want to implement a lognorma…
How to detect user-written programs in do-files?Is there a reasonable way to detect user-written commands in Stata code? I lead a small (5-person, …
Sample-level margin of error account for DeffHello, Apologies for the potentially basic question—I am generally a qualitative research who is di…
Calculating the difference of each variables with all othersHi, I would like to calculate the interest rate differential of each currency with all others. I ne…
Remove margin below X-titleHi Statalist, I need to embed a local polynomial graph inside a LaTeX document. In order to keep th…
Subscribe to:
Post Comments (Atom)
0 Response to Finding mean value of a column based on year
Post a Comment