Hi folks,
Apologies in advance for the rookie question!
I am designing a nested case-control study using electronic health data and would like some help with matching using the stset + sttocc command.
The cohort data is a dynamic cohort study with individuals entering and exiting the study at different dates (they have different start dates).
My failure event is the development of a disease (inflammatory bowel disease).
I have worked out how to match for "calendar time" and separately for "analysis time" using stset and sttocc.
For calendar time:
stset end, failure(event) enter(start) origin(date - in my study 01,01,2000) id(patid) scale(365.25)
set seed 9123456
sttocc, n(6) nodots
For analysis time:
stset end, failure(event) enter(start) origin(start) id(patid) scale(365.25)
set seed 9123456
sttocc, n(6) nodots
However, I would like my controls to be matched not only for analysis time but additionally for calendar time (i.e. each control has the same (or greater) follow up as their matched case over the same calendar period). Is there a way to do this?
Many thanks,
Tommy.
Related Posts with sttocc matching for both analysis time and calendar time - nested case control study
Collinearity with time dummies in FE, but not in REHey, I'm trying to fit a panel regression. I start by using: HTML Code: xtset Year country_id I th…
Unconditional Quantile Regression (rifreg) with an Interaction Term; and an independent percentile score variableHi all, we have a panel data set (defined by firms and years) and are trying to estimate the followi…
Repeated-Measure Ancova with Participants Randomized within Each Treatment/ConditionI think I want to use Repeated-Measure Anova command, "anova, repeated ()" or "wsanova" commands bas…
Multiple imputationDear all, I will please like to know how to carry out Instrumental variable post estimation tests (…
Again on revisiting the role of p-valueDear All, those interested in this debate may find the following article interesting: https://ift.tt…
Subscribe to:
Post Comments (Atom)
0 Response to sttocc matching for both analysis time and calendar time - nested case control study
Post a Comment