View source: R/paket_nph_2-1_1.R
plot.mixpch | R Documentation |
Plots survival and other functions stored in mixpch
objects versus time.
## S3 method for class 'mixpch' plot( x, fun = c("S", "F", "haz", "cumhaz"), add = FALSE, ylab = fun, xlab = "Time", ... )
x |
an object of class |
fun |
character string in |
add |
logical, indicates if the drawing should be added to an existing plot. |
ylab |
label of the y-axis |
xlab |
label of the x-axis |
... |
further arguments passed to the plotting functions |
Robin Ristl, robin.ristl@meduniwien.ac.at
Robin Ristl, Nicolas Ballarini, Heiko Götte, Armin Schüler, Martin Posch, Franz König. Delayed treatment effects, treatment switching and heterogeneous patient populations: How to design and analyze RCTs in oncology. Pharmaceutical statistics. 2021; 20(1):129-145.
pchaz
, subpop_pchaz
, pop_pchaz
A <- pop_pchaz(Tint = c(0, 90, 1500), lambdaMat1 = matrix(c(0.2, 0.1, 0.4, 0.1), 2, 2) / 365, lambdaMat2 = matrix(c(0.5, 0.2, 0.6, 0.2), 2, 2) / 365, lambdaProg = matrix(c(0.5, 0.5, 0.4, 0.4), 2, 2) / 365, p = c(0.8, 0.2), timezero = FALSE, discrete_approximation = TRUE) plot(A) plot(A, "haz", add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.