I have the following data set:
Parent Subsidiary Variable Value
US UK revenue 10
US FRA revenue 15
. . . .
. . . . .
US ESP profit 5
US UK profit 2
. . . .
. . . .
FRA US revenue 20
FRA UK revenue 15
. . . .
. . . .
FRA ESP profit 2
FRA LUX profit 10
I want to calculate the share of revenue that US parent companies have in the UK, FRA, and other countries. The figure for the UK then would be 10/(10+15+...). I want to do likewise for profits (and other variables).
I also want to do this for all countries - ie the share of French parent companies´ revenues that is generated in Spain, Luxembourg and other countries.
I´m guessing I might have to do loops, which I´m not really familiar with.
Related Posts with Generate variable (maybe needs a loop)
tobit regression help neededHi all, long-time reader, first-time poster. I would really appreciate some help with executing my T…
Frequency table with value labelsDear all, I want to create a frequency table, with frequency of open ended and close ended question…
query about graphHello, I provide a sample of my data in the following: Code: * Example generated by -dataex-. To in…
Marginal EffectHi Dears I hope all is well please, How can I get the marginal effect table after pooled/standard lo…
How to create dummy variable for means using for loopI have 6 numeric variables and I want to create 1 dummy variables that will be 1 if it is above its …
Subscribe to:
Post Comments (Atom)
0 Response to Generate variable (maybe needs a loop)
Post a Comment