Description Usage Arguments Value Examples
This function plots the survival curves per study design
1 2 3 4 5 6 7 |
S |
An object containly a list of survival functions to draw |
t |
A sequence of survival time for the plot (x-axis) |
... |
Other graphic parameters passed to the plot |
Display of the graph
1 2 3 4 5 6 7 8 | HR = 0.65; delay = 6; lambda0 = log(2) / 12;
h0 = function(t){lambda0}; S0 = function(t){exp(-lambda0 * t)}
Hazard function and survival function for experimental arm
lambda1 = lambda0 * HR
h1 = function(t){lambda1}; S1= function(t){exp(-lambda1 * t)}
F.entry = function(t){(t/18)^1.5*as.numeric(t <= 18) + as.numeric(t > 18)}
plotS(Tmax = 50, S = list(S0, S1), param=list(xlab="Time (mo)", ylab="PFS", main="PFS: HR = 0.65; Design Assumptions"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.