quantsccs {SCCS} | R Documentation |
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)
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. |
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.
Value
Relative incidence estimates along with their 95% confidence intervals.
Author(s)
Yonas Ghebremichael-Weldeselassie, Heather Whitaker, Paddy Farrington.
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
Examples
# 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