Check diagnostic for event-dependent observation end
Source:R/Diagnostics.R
checkEventObservationIndependenceAssumption.Rd
This diagnostic tests whether there is a dependency between the event and the end of observation. It does so by adding a probe window at the end of observation, and checking whether the rate of the outcome is elevated (or decreased) during this window.
The end of observation probe window will automatically be added to the model by the
createSccsIntervalData()
function, unless the endOfObservationEraLength
argument is set to 0.
This function extracts the estimate for that window from the model, and compares it to the
nullBounds
.#'
Usage
checkEventObservationIndependenceAssumption(sccsModel, nullBounds = c(0.5, 2))
Arguments
- sccsModel
A fitted SCCS model as created using
fitSccsModel()
.- nullBounds
The bounds for the null hypothesis on the incidence rate ratio scale.