Description Usage Arguments Value See Also Examples
Plot the estimated survival-completed cumulative loss (while-alive loss rate times the length of follow-up) as a function of the time horizon.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
x |
An object returned by |
group |
Specifies the group to be plotted. |
conf |
If TRUE, 95% confidence limits for the target curve are overlaid. |
main |
A main title for the plot. |
xlim |
The x limits of the plot. |
ylim |
The y limits of the plot. |
xlab |
A label for the x axis, defaults to a description of x. |
ylab |
A label for the y axis, defaults to a description of y. |
group.col |
A vector of colors for the group-specific curves; must be commensurate with the number of groups. |
conf.lty |
Line type for the confidence limits if |
lwd |
Line width. |
legend |
If TRUE, a crude legend for the group-specific curves will appear on the bottom right corner of the graph. |
... |
Other arguments that can be passed to the underlying |
No return value, called for side effects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # load the HF-ACTION trial data
head(hfaction_cpx12)
# fit the data
dat<-hfaction_cpx12
obj<-LRfit(dat$id,dat$time,dat$status,dat$trt)
# print the event numbers by group
obj
# summarize the inference results for tau=3.5 years
# with joint test with RMST
summary(obj,tau=3.5,joint.test=TRUE)
# plot the estimated survival-completed cumulative loss
# by group, with 95% confidence intervals
plot(obj,conf=TRUE,xlab="Time (years)",xlim=c(0, 3.5),ylim=c(0,3),
ylab="Survival-completed cumulative frequency")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.