I have a panel data set with data from parent companies and their subsidiaries. A parent company and its subsidiaries have a shared IDnumber and a individual IDnumber.
I want to contruct a variable that measures a weigthed average of the taxdifferences in the countries where the multinational operates:
C.i = 1/(1-T.i) * (sum of each subsidiary (profit.k/(1-T.k) (T.i-T.k))/sum (profit.k/(1-T.k) (See the Photo)
I believe it must be some kind of "if" command but i can't really figure it out. maybe something like the folowing:
gen C = 1/(1-Corperatetax) * sum(profit/(1-corperatetax.i?) (corperatetax - corperatax if (?) , by shared_ID)) ??
I really dont know how to make Work and hope someone can help me,
Kind regards Marius
I want to contruct a variable that measures a weigthed average of the taxdifferences in the countries where the multinational operates:
C.i = 1/(1-T.i) * (sum of each subsidiary (profit.k/(1-T.k) (T.i-T.k))/sum (profit.k/(1-T.k) (See the Photo)
I believe it must be some kind of "if" command but i can't really figure it out. maybe something like the folowing:
gen C = 1/(1-Corperatetax) * sum(profit/(1-corperatetax.i?) (corperatetax - corperatax if (?) , by shared_ID)) ??
I really dont know how to make Work and hope someone can help me,
Kind regards Marius
Comment