Learn R Programming

SCCS (version 1.7)

quantsccs: Quantitative exposures in self controlled case series method

Description

This function fits the starndard SCCS model where the exposures are measured on a continuous scale.

Usage

quantsccs(formula, indiv, event, data)

Value

Relative incidence estimates along with their 95% confidence intervals.

Arguments

formula

model formula. The dependent variale should always be "event" e.g. event ~ expo, where expo is an exposure measured at each time unit.

indiv

a vector of individual identifiers of cases

event

number of events occuring at each time unit.

data

a data frame containing the input data. Data are assembled one line per time unit of observation.

Author

Yonas Ghebremichael-Weldeselassie, Heather Whitaker, Paddy Farrington.

Details

In this method exposures are measured at successive time points within the observation period for each case. And number of events experienced by each case at each time point are recorded.

References

Farrington P., Whitaker H., and Ghebremichael-Weldeselassie Y. (2018). Self-controlled Case Series Studies: A modelling Guide with R. Boca Raton: Chapman & Hall/CRC Press.

See Also

semisccs

Examples

Run this code

# Headaches and blood pressure data. sys and dia (continuoous exposures) are systolic and
# diastolic blood pressure measurements respectively

 bp.mod <- quantsccs(event~sys+dia, indiv=case, event=head,
                      data=bpdat)

 bp.mod

Run the code above in your browser using DataLab