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
Stata Regression YearsHi all, I looked at a sample of companies and their balance sheets from 2014 to 2017. To do this, I…
How to run independence test on 3 categorical variables on Stata?I'm working on descriptive analysis and wish to compare 3 categorical variables: Sex (man / woman) …
Interpreting Probit results when convergence is not achievedHello, We are running an IV-probit model with interactions. Unfortunately, in some cases, our model…
100% sensitivity in my estat test, no data classified as negative & I'm only seeing 16/1771 case on my roc print out and scatterplotGood afternoon, When I run my logistic regression, everything comes out OK with no strange data. Ho…
Interpreting regression coefficients with min-max scalingHi, I am running a regression with indices. Dependent variable is overall index while independent v…
Subscribe to:
Post Comments (Atom)
0 Response to sttocc matching for both analysis time and calendar time - nested case control study
Post a Comment