I ask this question because I find everytime when I merge 2 data sets, I don't need to -sort id- at all. But I do see some authors' do file have sort id.
What the role of -sort id- here? I think even if the id is not arranged in an order, merge can still work.
Related Posts with do you use sort id before merge?
How to create a variable for the nth observation using datesHello! I have a long dataset with dates corresponding to visits (variable name "date"). Each person…
Returns of different companiesHello, I am new in Stata. I have stock price data of many companies. I would like to get the return…
Changing yes/no observations into 1/0I have a list of variables that contain answers Yes and No, I am trying to replace them with 1 and 0…
Reshaping dataHi, I have the following wide data. I want to convert it to long. Code: * Example generated by -da…
using foreeach loop for doing repeating worki want to save observations in different files on the basis of values of variable order. i have lots…
Subscribe to:
Post Comments (Atom)
0 Response to do you use sort id before merge?
Post a Comment