Description Usage Arguments Value See Also Examples
Plot the estimated overall or stage-wise restricted mean times in favor of treatment as a function of follow-up time.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
x |
An object returned by |
k |
If specified, μ_k(τ) is plotted; otherwise, μ(τ) is 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. |
conf.col |
Color for the confidence limits if |
conf.lty |
Line type for the confidence limits if |
... |
Other arguments that can be passed to the underlying |
No return value, called for side effects.
rmtfit
, summary.rmtfit
, bouquet
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # load the colon cancer trial data
library(rmt)
head(colon_lev)
# fit the data
obj=rmtfit(ms(id,time,status)~rx,data=colon_lev)
# plot overal effect mu(tau)
plot(obj)
# set-up plot parameters
oldpar <- par(mfrow = par("mfrow"))
par(mfrow=c(1,2))
# Plot of component-wise RMT in favor of treatment over time
plot(obj,k=2,conf=TRUE,col='red',conf.col='blue', xlab="Follow-up time (years)",
ylab="RMT in favor of treatment (years)",main="Survival")
plot(obj,k=1,conf=TRUE,col='red',conf.col='blue', xlab="Follow-up time (years)",
ylab="RMT in favor of treatment (years)",main="Pre-relapse")
par(oldpar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.