Hi,
I am currently writing my thesis but unfortunately ran into some problems with calculating a variable in stata.
My (panel)dataset consists of 48,000 observations all data of firms from year 2006 to 2014
The variable i am trying to create is efwamb which is denoted by this formula: Array
e and d are equity issues and debt issues respectively, M/B is the market to book ratio in any given year. For every year the M/B ratio is multiplied by the weight of equity and debt issues divided by the sum of total equity and debt issues of the starting years until the year i am calculating the efwamb for. So for example 2006 and 2008:
Array
Array
I have calculated the e and d issues in every year, as well as the M/B ratios and cumulative sum of e and d for every year. So I now have the nominator and denominator available but am really struggling with calculating these weights.
Would anyone know an easy way to calculate this? Would be much appreciated!
Bob
Related Posts with calculating weights for each year (panel data)
Empty string in macroIs there any way to get an empty string recognized as a word in a macro? The idea is a macro (call i…
How to test goodness of fit in multinomial logistic regression having used the subpop rather than sub sample optionoptionHow do I test the goodness of fit for multinomial logistic regression, having used the subpop option…
Get words from a list if they contain a given substringI have a set of filenames in a list like Code: local files "a.dat b.dat c.dat d.xlsx e.dat f.xlsx"…
Help - Create Variable Indicating Percent who Agree or Strongly Agree by DepartmentHi, All, I have survey data with responses from individuals (n = 1077, some missing data), and thos…
Creating a Propensity Score Robustness Check TableHi, Does anyone know if there's a way to create a table like the attached image of different propen…
Subscribe to:
Post Comments (Atom)
0 Response to calculating weights for each year (panel data)
Post a Comment