Learn R Programming

SelfControlledCaseSeries (version 6.0.0)

createSccsIntervalData: Create SCCS era data

Description

Create SCCS era data

Usage

createSccsIntervalData(studyPopulation, sccsData, createSccsIntervalDataArgs)

Value

An object of type SccsIntervalData.

Arguments

studyPopulation

An object created using the createStudyPopulation() function.

sccsData

An object of type SccsData as created using the getDbSccsData function.

createSccsIntervalDataArgs

An object of type CreateSccsIntervalDataArgs as created by the createCreateSccsIntervalDataArgs function.

Details

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.