as.data.frame.bshazard | R Documentation |
Convert a bshazard object to a data-frame.
## S3 method for class 'bshazard'
as.data.frame(x, ...)
x |
bshazard object |
... |
other arguments |
Returns a data-frame with names time, hazard, conf.low and conf.high (cf. lower.ci and upper.ci provided in the object).
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x, ...)
{
with(x, data.frame(time, hazard, conf.low = lower.ci, conf.high = upper.ci))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.