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
Help with xtreg, splines and trends?Hi all, since my last post I have read the FAQs and so this should be a better post; Now, I am doin…
Unzipping fileHello. I am having trouble unzipping a file with Stata. Please see picture attached. …
How to use value labels in graph legend rather than variable namesI have a bar graph with 11 variables (B1_1 - B1_11) and each variable is binary with a label on the …
Dropping dummies from output tableHi guys, I hope you can help me. I am working with the following regressions: regress ylist xlist …
Random allocation of observationsDear Community. I have about five million observations(men, age 40s). I'd like to classify these 5…
Subscribe to:
Post Comments (Atom)
0 Response to stset+sttocc matching - nested case-control study
Post a Comment