checkEventExposureIndependenceAssumption | R Documentation |
This diagnostic tests whether there is a dependency between the event and subsequent exposures.
This requires you have indicated one of the era covariates to be a pre-exposure window. This
function simply checks whether the confidence interval for the effect estimate of that pre-
exposure window overlaps with the nullBounds
.
To designate an era covariate to be the pre-exposure window, set preExposure = TRUE
when
calling createEraCovariateSettings()
. Note that, by default, preExposure
will be TRUE
if
start
is smaller than 0.
checkEventExposureIndependenceAssumption(sccsModel, nullBounds = c(0.8, 1.25))
sccsModel |
A fitted SCCS model as created using |
nullBounds |
The bounds for the null hypothesis on the incidence rate ratio scale. |
A tibble with one row per pre-exposure window and four columns: ratio
indicates the estimates
incidence rate ratio for the pre-exposure window. lb
and ub
represent the upper and lower
bounds of the 95 percent confidence interval, and pass
is TRUE
if the confidence interval
intersects the null bounds.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.