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
quasi-panel made out of cross-sectional dataHi all, Does anybody know how to create a quasi-panel data out of the cross-sectional data. I have a…
Panel Data - Identify how many panelists have a change in a particular variable over timeHello all, I'm working with a fixed effects panel data model (individual FE). I have a number of in…
Impostare parametri inizialiGood morning I open this thread to ask if in Stata it is possible to create initial parameters (to c…
using a separate time variable and am/pm indicator variable to generate a military time variableHi, I briefly dug into this and could not find an answer. I have 3 variables: a date variable, a ti…
Help with linear approximate ideal demand system (LA-AIDS/L-AIDS)Hi everyone, I have a time series data where there are several variables given.For example, disappea…
Subscribe to:
Post Comments (Atom)
0 Response to stset+sttocc matching - nested case-control study
Post a Comment