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
Is there a good way to test whether explanatory power among variables varies across populations?Let's imagine I want to assess whether the explanatory power of daily calories, minutes of exercise,…
gen var1=var2, generates some wrong values Code: gen geo3= geo3_bd2001 gives the following values. I wonder what might cause this. Any idea pl…
esttab summary stats tableHello, I am using estout package to create my summary stats table. I only want the stats for one v…
Why might Clopper Pearson CIs differ in Stata vs SAS output?Hello, I am currently using Stata to replicate an analysis with complex svy data to obtain weighted…
Teffect psmatch with sample weightsI am using propensity score matching on data that requires using sample weights. The data comes from…
Subscribe to:
Post Comments (Atom)
0 Response to Generating duplicate observations with one variable changed
Post a Comment