Nothing
## ----setup01, include=FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "fig/overview-",
fig.ext = "png",
fig.width = 6,
fig.height = 4,
dpi = 300,
fig.retina = 2,
fig.align = "center",
out.width = "70%"
)
if (requireNamespace("cifmodeling", quietly = TRUE)) {
library(cifmodeling)
} else {
stop("Package 'cifmodeling' is not available during vignette build.")
}
library(nleqslv)
library(boot)
library(ggplot2)
library(ggsurvfit)
library(patchwork)
data("diabetes.complications", package = "cifmodeling")
set.seed(1)
## ----example01-1, fig.cap="Aalen-Johansen cumulative incidence curves from cifplot()", warning=FALSE, message=FALSE----
library(cifmodeling)
data(diabetes.complications)
cifplot(Event(t,epsilon)~fruitq, data=diabetes.complications,
outcome.type="competing-risk", panel.per.event=TRUE)
## ----example01-2, eval=requireNamespace("DiagrammeR", quietly = TRUE) && exists("cifflowchart", envir = asNamespace("cifmodeling"), inherits = FALSE), warning=FALSE, message=FALSE----
cifmodeling::cifflowchart(
Event(t, epsilon) ~ fruitq1,
data = diabetes.complications,
time.point = 8,
outcome.type = "competing-risk"
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.