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
-merge- not finding all matchesI'm running Stata version 14.2 on Windows. My analysis includes weight data for children. My main an…
How to compute constant on fixed effects Quantile regressionHi, I know that xtqreg command does not show any constant, however, as i am working on a genetics t…
Diff-in-Diff covariate collinearity issueHi all. I'm running a difference-in-difference model with the new xtdidregress command. When I inclu…
Fill null values in an ordered list with repeating valuesHi there. For a data structure like the following, ordered by COMUNA - N_CALLE - NUMN and where repe…
Constructing weekly date when the weeks are determinedHi I have variables for the year, the quarter (taking values from 1 to 4), and the week (taking val…
Subscribe to:
Post Comments (Atom)
0 Response to Finding mean value of a column based on year
Post a Comment