View source: R/SccsDataConversion.R
createSccsIntervalData | R Documentation |
Create SCCS era data
createSccsIntervalData(
studyPopulation,
sccsData,
eraCovariateSettings,
ageCovariateSettings = NULL,
seasonalityCovariateSettings = NULL,
calendarTimeCovariateSettings = NULL,
minCasesForAgeSeason = NULL,
minCasesForTimeCovariates = 10000,
eventDependentObservation = FALSE
)
studyPopulation |
An object created using the |
sccsData |
An object of type SccsData as created using the getDbSccsData function. |
eraCovariateSettings |
Either an object of type |
ageCovariateSettings |
An object of type |
seasonalityCovariateSettings |
An object of type |
calendarTimeCovariateSettings |
An object of type |
minCasesForAgeSeason |
DEPRECATED: Use |
minCasesForTimeCovariates |
Minimum number of cases to use to fit age, season and calendar time splines. If needed (and available), cases that are not exposed will be included. |
eventDependentObservation |
Should the extension proposed by Farrington et al. be used to adjust for event-dependent observation time? |
This function creates covariates based on the data in the sccsData
argument, according to the
provided settings. It chops patient time into periods during which all covariates remain constant.
The output details these periods, their durations, and a sparse representation of the covariate
values.
An object of type SccsIntervalData.
Farrington, C. P., Anaya-Izquierdo, A., Whitaker, H. J., Hocine, M.N., Douglas, I., and Smeeth, L. (2011). Self-Controlled case series analysis with event-dependent observation periods. Journal of the American Statistical Association 106 (494), 417-426
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.