Target Trial Emulation Code