Hi all,
I am working with a panel data set (Orbis by Bureau van Dijk) containing information on millions of firms (mostly data from financial statements such as profits, fixed assets, turnover etc.).
Furthermore, the data contains information about the ultimate owner of each company, which allows me to group firms by their group ultimate owner (GUO). Each GOU owns potentially many different companies in different countries.
I am looking to generate a variable involving summations of variables within the GUO. Specifically, I want to generate the following variable, where B_{k,t} denotes estimated profit of firm k at time t.
Array
The tax variable is the corporate tax rate facing firm i at time t.
I have really been trying on my own, even generating the different parts individually. But the part regarding keeping tax rate i at time t constant while iterating over the tax rates in other countries at time t is causing me trouble. I am refering to the difference between the tax rates in the nominator.
Thank you in advance. This might not be an easy task - at least I don't think so.
Kind regards,
Jonas
Related Posts with Generating advanced variable in Stata (panel data)
String to date variable with time when string does not follow the format DMY ## or DMYhmsHi all, I have a large set of string variables (too large to encode) that contain dates and specifi…
Using margins after gsem mlogit model.I am running a multilevel multinomial logit model Code 1: gsem (i.o1<- v1 v2 v3 c1 c2 M1[g1]@1),…
Number of observations with variable in between a range informed in each of the rowsI have a hospital record dataset with data on (i) the diagnosis of the patient, (ii) the procedure p…
Estimating the transcendental and trans log production functionsDear forum I'm new to Stata and would like to inquire about the commands if i want to estimate trans…
Long Macrolist for a loopI am looking at consolidating data from CRSP for companies with the same parent company. To do this,…
Subscribe to:
Post Comments (Atom)
0 Response to Generating advanced variable in Stata (panel data)
Post a Comment