Description Usage Arguments Value Author(s) See Also Examples
This function can be used to construct a risk-adjusted funnel plot.
1 | funnelplot(data, ctime, p0, glmmod, followup, conflev = c(0.95, 0.99))
|
data |
and optionally additional covariates used for risk-adjustment. |
ctime |
construction time at which the funnel plot should be determined. Constructed over whole data when not specified |
p0 |
The baseline failure probability at entrytime + followup for individuals. If not specified, average failure proportion over whole data is used instead. |
glmmod |
a generalized linear regression model as produced by
the function
|
followup |
The followup time for every individual. At what time after subject entry do we consider the outcome? |
conflev |
A vector of confidence levels of interest. Default is c(0.95, 0.99). |
An object of class "funnelplot" containing:
data
: A data.frame
containing:
$instance instance number
$observed observed number of failures at instance
$expected expected (risk-adjusted) number of failures at instance
$numtotal total number of individuals considered at this instance
$p (risk-adjusted) proportion of failure at instance
$conflevels worse/normal/better performance than expected at this confidence level
call
: the call used to obtain output
plotdata
: data used for plotting confidence intervals
conflev
: specified confidence level(s)
There are plot
and
summary
methods for "funnelplot" objects.
Daniel Gomon
plot.funnelplot
, summary.funnelplot
Other qcchart:
bercusum()
,
bkcusum()
,
cgrcusum()
1 2 3 4 5 6 7 | varsanalysis <- c("age", "sex", "BMI")
exprfitfunnel <- as.formula(paste("(entrytime <= 365) & (censorid == 1)~",
paste(varsanalysis, collapse='+')))
surgerydat$instance <- surgerydat$Hosp_num
glmmodfun <- glm(exprfitfunnel, data = surgerydat, family = binomial(link = "logit"))
funnel <- funnelplot(data = surgerydat, ctime = 3*365, glmmod = glmmodfun, followup = 100)
plot(funnel)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.