Description Usage Arguments See Also Examples
Function to plot the the survivor function
estimated by bivrec
or unirec
.
1 2 3 4 5 6 |
x |
an object of type |
which |
an integer that determines which plot to draw. If |
main |
for |
xscale |
amount by which to scale the x axis (for example to convert time from days to years). The hazard is automatically scaled accordingly. |
hazscale |
additional scaling for the hazard. |
add |
logical, whether to add the lines to the current plot or create a new plot. |
legend |
logical, whether to draw a legend. |
... |
additional parameters passed on to |
1 2 3 4 5 6 7 8 9 10 11 | data(m10Ji5.fit) # Example fitted model (see example(bivrec))
# Default plot of the survivor function of the first process
plot(m10Ji5.fit, which=1, main="Example Plot")
# Add a line showing the effect of the covariate
plot(m10Ji5.fit, which=1,
hazscale=exp(m10Ji5.fit$regression$coefficients1["Z1"]),
add=TRUE, lty=2)
legend("topright", c("Z1 = 0", "Z1 = 1"), lty=c(1,2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.