Description Usage Arguments Value Methods (by class) Author(s) See Also Examples
This function can be used to calculate the run length of a 'cgrcusum', 'bkcusum' or 'bercusum' chart when using control limit h
1 2 3 4 5 6 7 8 9 10 |
chart |
a 'cgrcusum', 'bkcusum' or 'bercusum' chart |
h |
control limit h to be used when determining the run length |
... |
other parameters |
The run length of the chart with the given control limit.
cgrcusum
: Determine runlength of "cgrcusum" object
bkcusum
: Determine runlength of "bkcusum" object
bercusum
: Determine runlength of "bercusum" object
Daniel Gomon
Other utils:
calc_risk()
,
exp_hazards
,
gen_arriv_times()
,
gen_surv_times()
Other utils:
calc_risk()
,
exp_hazards
,
gen_arriv_times()
,
gen_surv_times()
Other utils:
calc_risk()
,
exp_hazards
,
gen_arriv_times()
,
gen_surv_times()
1 2 3 4 5 6 7 8 | varsanalysis <- c("age", "sex", "BMI")
exprfitber <- as.formula(paste("(entrytime <= 365) & (censorid == 1)~",
paste(varsanalysis, collapse='+')))
surgerydat$instance <- surgerydat$Hosp_num
glmmodber <- glm(exprfitber, data = surgerydat, family = binomial(link = "logit"))
bercus <- bercusum(data = subset(surgerydat, Hosp_num == 14), glmmod = glmmodber,
followup = 100, theta = log(2))
runlength(bercus, h = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.