View source: R/clinic_getDCA2.R
getDCA2 | R Documentation |
ggplot style for decision estimate analysis
getDCA2(
data,
group.by = NULL,
time.col = "time",
status.col = "event",
clusters,
time.raw.type = c("Day", "Month", "Year")[1],
time.target.type = c("Day", "Month", "Year")[3],
time.knot = c(3, 5),
study.design = "cohort",
population.prevalence = c(NA, NA),
load.existed.res = F,
plot.ntbft.by = c("group", "model")[1],
plot.ntbft.ymin = NULL,
plot.ntbft.ymax = NULL,
width = 9,
height = 7,
add.bootc = T,
add.cv = F,
add.ci = T,
plot.legend.position = "right",
plot.type = c("time", "cluster", "disperse")[1],
plot.label,
parameter.label = c(all = "All positive", none = "All negative"),
plot.family = "Arial",
names = "project"
)
data |
a data frame with survival data(time & event) |
group.by |
group colname |
time.col |
colname of time value |
status.col |
Numeric. |
clusters |
list of characters.Some of the colnames of the data representing the value involving the glm model. |
time.raw.type |
one of "Day","Month","Year" |
time.target.type |
one of "Day","Month","Year" |
time.knot |
time knot to create survival probability |
study.design |
Either 'cohort' (default) or 'case-control' describing the study design used to obtain data. See details for more information. |
population.prevalence |
Outcome prevalence rate in the population used to calculate decision curves when study.design = 'case-control'. |
load.existed.res |
whether to use existed rds result in the work space |
plot.ntbft.ymin |
the ymin of plot.ntbft. Default is |
plot.ntbft.ymax |
the ymax of plot.ntbft. Default is |
plot.legend.position |
the position of plot legend |
plot.type |
Character. One/some of c("time","cluster","disperse"). if |
plot.label |
List. The name of list are the paste0 of elements in one of |
parameter.label |
the label of parameter label. |
names |
part of save files or plots. |
beta version
ggplot style plot and result
Weibin Huang<654751191@qq.com>
## This is a simulative process and available only with CORRECT VARIABLES
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.