Hi all,
I am designing a nested case-control study using cohort data and would like some help with matching using the stset + sttocc command.
My failure event is the development of a disease (brain cancer).
I have worked out how to match for "sex" and "birth year" using stset and sttocc.
gen xitdate=mdy(xitmo, xitdy, xityr)
stset xitdate, failure(cns==1) id(id) scale(365.25)
set seed 9123456
sttocc, match (sex byr) n(5) nodots
list _set id _case _time sex byr, sepby(_set)
However, I would like my controls to be matched not only for sex and birth year but additionally for date of diagnosis (i.e. each control has the same date as their matched case over the same date of diagnosis).
Is there a way to do this?
Many thanks,
Ye Jin Bang.
Related Posts with stset+sttocc matching - nested case-control study
Time and Country Fixed Effects in Panel Data Estimation (OLS and PPMLI am doing a regression taking 34 countries for the time period 2010-19. It is a gravity model so th…
Confusion about create matching pair id for conditional logistic regressionDear Statalisters, I use -ccmatch- creating match pair of fdz (0 1) base on condition of (size0 ind…
How to explain the results of t2way5 i.e. Tukey's Two-Way Analysis by MediansDear Stata users, Nick Cox had written a command named -t2way5- (SSC) to execute Tukey's Two-Way An…
Mundlak procedureDear all, When using the Mundlak procedure, if one wishes to include year fixed effects (i.e. a dum…
From single event observations to time seriesHi everyone, As I am quite new to Stata hope you can help me out with the next question. Currently…
Subscribe to:
Post Comments (Atom)
0 Response to stset+sttocc matching - nested case-control study
Post a Comment