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
Restricting sample to same observations in each yearHello, I have a panel with individuals who are followed over a 5 year period. I have 7100 individual…
convert 'n' rows of a variable to 'n' columnsHi, I would appreciate if I could get help with creating new variables from rows of an existing var…
Matching/merging Job seekers to job posts if they meet requirementsHello Everyone, Hope you all are well. I am looking to merge two datasets however, I want to match …
command esttab is unrecognized but estout already installedHello! I have a problem using -esttab-. Here is the code I try to run: Code: logout, save(H1) word…
Converting R code into Stata codeHi, I'm looking for a way (preferably hiring a skilled RA to do this for $) to convert data analyse…
Subscribe to:
Post Comments (Atom)
0 Response to Merge a variabel into another dataset
Post a Comment