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)
How to put "if" in a regression statement ?Hi all, I tried some ways to put "if" to the regressing statement but they all failed, can you pleas…
Comparing groups in spatial panel regression: Where to get the partial derivatives and individual spillover effects?Dear all, The problem is the following: I have panel data on the spread of covid-19 and would like …
How to test the difference of the sample mean difference?Dear all, I have return data for two types of firms from the year 2015 to 2016, I know how to test t…
Consquences of demeaning an ordinal variableI have a discrete variable with a scale from 0 (no issue) - 3 (severe issue). Because what constitut…
Mediation Effect MeasureHi, I need help with the following. The channeling effect is the reduction in the independent variab…
Subscribe to:
Post Comments (Atom)
0 Response to calculating weights for each year (panel data)
Post a Comment