Description Usage Arguments Details Value See Also Examples
Plot a survomatic
object.
1 |
xx |
A |
what |
|
col |
Line colors for the first group data, the first group predicted values, the second group data, and the second group predicted values, respectively. |
lwd |
Line widths for the first group data, the first group predicted values, the second group data, and the second group predicted values, respectively. |
lty |
Line types for the first group data, the first group predicted values, the second group data, and the second group predicted values, respectively. |
xlim |
Range for x-axis, passed to |
For what="surv"
plots ordinary survival curves. For
what="haz"
and what="den"
also plots predicted values. To
suppress one or the other, set the first and third or the second and
fourth values of the col
argument to NA
.
NULL
1 2 3 4 5 6 7 8 9 10 | ## Generate two sets of survival times.
population1 <- simsurv(250,type='g',p=c(7.33e-4,0.1227,0,0));
population2 <-
simsurv(200,type='lm',p=c(5.4818e-5,0.1543,0.0023,0.6018));
## Fit models to the populations and compare the parameters.
models1vs2 <- survwrapper(population1,population2);
## Plot the resulting survomatic object
plot(models1vs2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.