Description Usage Arguments Value See Also Examples
This function computes event-specific incidence rate ratios between two groups. Each group is given by a covariate value.
1 | irates.ratio(irates, covar.code, ci.fun = NULL, ci.level = NULL)
|
irates |
|
covar.code |
A vector of character or numerical values that specifies the covariate values in |
ci.fun |
A character value out of c(“lin”, “log”) that specifies the confidence interval function, either linear or log-transformed. If |
ci.level |
A numerical value between 0 and 1 that specifies the level for the two-sided confidence interval. If |
An object of class irates.ratio
. This object is implemented as a list of the (besides pre-specified) following items:
irr |
Competing events incidence rate ratios |
var |
Variance estimates for competing events incidence rate ratios |
conf.lower |
Lower confidence interval corresponding to pre-specified function and level |
conf.upper |
Upper confidence interval corresponding to pre-specified function and level |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ### Example data.frame with aggregated count data
dat <- data.frame(
times = c(7948,2899),
no.event = c(6,8),
event.1 = c(589,68),
event.2 = c(55,21),
row.names = c("covar0","covar1"))
### Compute irates object from dat
ir <- irates(dat)
### Compute incidence rate ratios from irates object
irates.ratio(
ir,
covar.code = c("covar1", "covar0"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.