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
How can I run an event study on this dataset?Hi, I want to look at market reaction in response to earnings announcements, and I have a dataset i…
Cointegration in time series regressionIf I've found that yt and xt, which are both I(1), are cointegrated, what regression would I run? …
Testing b coefficients Panel modelsI'm running 9 different Panel model to test diaspora effects of migration on trade for 9 different c…
How to find ttest at 1% ?Hello. I want to make a t-test at 5%and one at 1%. I use this code : Code: ttest d2, by(b7a) The…
PercentagesHi Statlist, I am trying to build a scatterplot and would like to input data in the form of percent…
Subscribe to:
Post Comments (Atom)
0 Response to stset+sttocc matching - nested case-control study
Post a Comment