Dear Statalisters,
I wish to perform a survival analysis comparing exposed and non-exposed subjects with the special condition that non-exposed subjects have their study entry date the same as the study entry date of the exposed subject to whom they are matched. I have used the user-written command gmatch to perform greedy matching based on propensity scores, and groups are well-balanced (SMD between exposed/non-exposed all <0.1).
For context, the observation window is all patients admitted to a hospital department between 01/Jan/2003 - 31/Dec/2014. A subject becomes exposed when they take out a prescription for drug. Suppose this happens on 01/Feb/2006. That exposed subject has a study entry of 01/Feb/2006. This exposed subject has been matched to a non-exposed subject who was admitted to the department on 01/Feb/2004 (thus this is their study entry date). I wish to force the study entry date of the exposed (01/Feb/2006) onto the non-exposed and treat the two years of observation time before this date that the non-exposed subject has as history.
I know of the command sttocc but I don't think this command can be used to generate what I am after.
I am using Stata v14.2.
Many thanks,
Alexander
Related Posts with Force the study entry date from an exposed subject to a matched non-exposed subject
Reshape Wide IssueHi, I have been trying to reshape my data from long to wide format using reshape wide. The data look…
New to stata, Impossible problem for a summary table?Hello all- I'm so glad I found this forum! I've just started working with stata for a biostats class…
Maximum number of iterations exceededHello, I hope you guys are doing well. I am estimating a model using panel ardl techniques, namely …
How to convert SIC codes into Fama French 12Hello, I am a uni student and I'm terrible with computers. For a project that is due in a week, we a…
Calculating F-statistic after constrained regressionI have run this unconstrained regression *Model: lcost=ß_1+ß_2loutput+ ß_3plabor+ ß_4lcapital+ß_5lpf…
Subscribe to:
Post Comments (Atom)
0 Response to Force the study entry date from an exposed subject to a matched non-exposed subject
Post a Comment