Hello all,
Attached below is a simple example I have made up so I can fully understand this: Lets say I want to merge a variabel from another dataset to this dataset. This variabel (var3) measures what the apples and oranges cost in US dollars ($). If "var3" can take the value (1) for apples and (2) for oranges what command should I use so the value (1) always is at the same row as "apples" and the value (2) always is at the same row as "oranges"? Hope this make sense.
Hope this makes sense - and thanks for the replies in advance
Søren
Array
Related Posts with Merge a variabel into another dataset
Use a for-loop to generate dummy variablesI'm having a hard time generating dummy variables using a for loop. I have a variable with some valu…
Lag not working for monthly/quarterly dataI am struggling with this issue and can't understand, why it's not working. I have quarterly cross-s…
Mean on a graph pieHello. I have two variable : one is continous, the other is trinary. I want to make a graph pie of t…
Generate new variable in a panel taking differencesHello, I am working in stata 15 on windows 10 and I want to create a variable that is the differenc…
Doing Merge using rangejoinHello, I am a new member to this forum! Nice to meet you all. I have just went through set of posts…
Subscribe to:
Post Comments (Atom)
0 Response to Merge a variabel into another dataset
Post a Comment