View source: R/print.HazardShape.R
print.HazardShape | R Documentation |
HazardShape
objectsDisplays the estimated hazard shape given a HazardShape
object.
## S3 method for class 'HazardShape' print(x, ...)
x |
an object of class |
... |
further arguments passed to or from other methods. |
Jaime Mosquera GutiƩrrez jmosquerag@unal.edu.co
#-------------------------------------------------------------------------------- # Example 1: Increasing hazard and its corresponding TTT plot with simulated data hweibull <- function(x, shape, scale){ dweibull(x, shape, scale)/pweibull(x, shape, scale, lower.tail = FALSE) } curve(hweibull(x, shape = 2.5, scale = pi), from = 0, to = 42, col = "red", ylab = "Hazard function", las = 1, lwd = 2) y <- rweibull(n = 50, shape = 2.5, scale = pi) my_initial_guess <- TTT_hazard_shape(formula = y ~ 1) print(my_initial_guess) #--------------------------------------------------------------------------------
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.