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
Indirect effects with zero-inflated Poission regression / SEMDear all, I have a causal chain X -> M -> Y and am interested in the indirect effect of X on …
Determining best fe-model with paneldata (u-test)Hello! I am new to stata and am investigating the relationship between paid leave (maternal and pare…
Test to compare Positive and Negative Predictive Value?Hi all, I wonder if its possible use a test to compare Positive and Negative Predictive Value with …
IV variable option in Stata program syntaxHello I am trying to write a program to run a regression based on some criteria and I want to add t…
Changing a discrete variable into a dummy and loosing significanceDear all, I am writing an essay using an unbalanced panel dataset. Right now I am using a Linear Pr…
Subscribe to:
Post Comments (Atom)
0 Response to Finding mean value of a column based on year
Post a Comment