I am working with data containing observations for patients undergoing a surgical procedure that is commonly (but not always) performed by access in both femoral/groin arteries. These arteries may be accessed via an open surgical incision or via a minimally-invasive percutaneous approach. My dataset has a variable for the manner in which each side was or was not accessed (e.g. 0 == not accessed, 1 == open surgical, 2 == minimally-invasive). In order to examine these access sites and their methods of access, I wish to generate duplicates for those patients who had both sides accessed, with each copy containing the entry for one access side and the other blanked.
Related Posts with Generating duplicate observations with one variable changed
looping over data filesHello Users, I have data of banks by id numbers. What I want to do is: (1) to merge 4 tables of one …
command to check for overlapping interval?Hello everyone, I'd like to ask for your help in the following issue. I'm using individual data an…
Inquire about merge commandHi, I need to merge 3 files. And everytime I need to drop _merge after merge command. Is this the us…
inquire about rowtotal Code: gen s1 = x1+x2+x3+x4 replace s1 = 0 if s1 == . egen s2 = rowtotal(x*) assert s1==s2 Why it's …
Continuous interaction termI am working on understanding youth unemployment and use four main independent variables in my analy…
Subscribe to:
Post Comments (Atom)
0 Response to Generating duplicate observations with one variable changed
Post a Comment