Check stability of outcome rate over time
computeTimeStability(
studyPopulation,
sccsModel = NULL,
maxRatio = 1.1,
alpha = 0.05
)
A tibble with one row and three columns: ratio
indicates the estimated mean ratio between observed and expected.
p
is the p-value against the null-hypothesis that the ratio is smaller than maxRatio
, and pass
is TRUE
if p
is greater than alpha
.
An object created using the createStudyPopulation()
function.
Optional: A fitted SCCS model as created using fitSccsModel()
. If the
model contains splines for seasonality and or calendar time these will be adjusted
for before computing stability.
The maximum global ratio between the observed and expected count.
The alpha (type 1 error) used to test for stability.
DEPRECATED. Use checkTimeStabilityAssumption()
instead.