Thanks to Kit Baum, there is a new package -sccsdta- at the SSC.
The SCCS method examines the association between a time-varying exposure and an event outcome.
The study samples only cases, and it requires that an event has occurred during the observation period.
The method doesn't compare incidences for cases with incidences for references.
Instead, it contrasts incidences in periods of risk with incidences in periods where the case is not at risk.
In this approach, cases serve as their control for fixed confounders.
It's feasible to adjust for time effects such as age.
The intervals are marked by risk, time, and individual.
For each interval, the number of incidences and the width of the interval are determined.
An introduction is: https://www.medicine.mcgill.ca/epide...l/Tutorial.pdf or https://www.bmj.com/content/354/bmj.i4515
Below is a reproduction of example 3.1 in the tutorial from the first reference:
Hospital records indicate an association between MMR vaccination and viral meningitis.
Specifically, using a certain live mumps vaccine, known as the Urabe strain, has been linked to an increased risk of viral meningitis.
Instances of viral meningitis were identified in 10 children during their second year of life.
Event day (day of meningitis) and a day for exposure (day of vaccination) for 10 children are listed in the dataset
The observation period was from the 366th to the 730th day of age.
Evidence led to the definition of the risk period as the 15th to the 35th day following the administration of the MMR vaccine.
Age groups were 366 to 547 days and 548 to 730 days.
Using the sccsdta command:
transforms the dataset into (first 3 children):
We estimate the incidence rate ratio of the risk period versus the no-risk period using a Poisson regression and looking at the i._exgr estimate:
We get a better estimate report using the command regmat (ssc install matrixtools - works from version 13.1)
Enjoy
The SCCS method examines the association between a time-varying exposure and an event outcome.
The study samples only cases, and it requires that an event has occurred during the observation period.
The method doesn't compare incidences for cases with incidences for references.
Instead, it contrasts incidences in periods of risk with incidences in periods where the case is not at risk.
In this approach, cases serve as their control for fixed confounders.
It's feasible to adjust for time effects such as age.
The intervals are marked by risk, time, and individual.
For each interval, the number of incidences and the width of the interval are determined.
An introduction is: https://www.medicine.mcgill.ca/epide...l/Tutorial.pdf or https://www.bmj.com/content/354/bmj.i4515
Below is a reproduction of example 3.1 in the tutorial from the first reference:
Hospital records indicate an association between MMR vaccination and viral meningitis.
Specifically, using a certain live mumps vaccine, known as the Urabe strain, has been linked to an increased risk of viral meningitis.
Instances of viral meningitis were identified in 10 children during their second year of life.
Event day (day of meningitis) and a day for exposure (day of vaccination) for 10 children are listed in the dataset
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(eventday exday) 398 458 413 392 449 429 455 433 472 432 474 395 485 470 524 496 700 428 399 716 end
Evidence led to the definition of the risk period as the 15th to the 35th day following the administration of the MMR vaccine.
Age groups were 366 to 547 days and 548 to 730 days.
Using the sccsdta command:
Code:
. sccsdta eventday exday, enter(365) exit(730) riskpoints(14 35) timepoints(547)
Code:
. list if _id < 4, sepby(_id) noobs +---------------------------------------------------------------------------------------+ | eventday exday _id _start _stop _nevents _exgr _tmgr _inter~l | |---------------------------------------------------------------------------------------| | 398 458 1 365 472 1 no ]365; 547] 107 | | 398 458 1 472 493 0 ]14; 35] ]365; 547] 21 | | 398 458 1 493 547 0 no ]365; 547] 54 | | 398 458 1 547 730 0 no ]547; 730] 183 | |---------------------------------------------------------------------------------------| | 413 392 2 365 406 0 no ]365; 547] 41 | | 413 392 2 406 427 1 ]14; 35] ]365; 547] 21 | | 413 392 2 427 547 0 no ]365; 547] 120 | | 413 392 2 547 730 0 no ]547; 730] 183 | |---------------------------------------------------------------------------------------| | 449 429 3 365 443 0 no ]365; 547] 78 | | 449 429 3 443 464 1 ]14; 35] ]365; 547] 21 | | 449 429 3 464 547 0 no ]365; 547] 83 | | 449 429 3 547 730 0 no ]547; 730] 183 | +---------------------------------------------------------------------------------------+
Code:
. poisson _nevents i._exgr i._tmgr i._id, exposure(_interval) irr
Code:
. regmat, o(_nevents) e(i._exgr) a("i._tmgr i._id") eform d(3) label btext(irr) names("") base: poisson, exposure(_interval) ----------------------------------------------------------------------------------- irr se(irr) Lower 95% CI Upper 95% CI P value ----------------------------------------------------------------------------------- Events(#) At risk (no) 1.000 At risk (]14; 35]) 12.037 2.031 3.002 48.259 0.000 -----------------------------------------------------------------------------------
Comment