Learn R Programming

biostat3 (version 0.2.3)

as.data.frame.bshazard: Functions to work with bshazard objects.

Description

Convert a bshazard object to a data-frame.

Usage

# S3 method for bshazard
as.data.frame(x, ...)

Value

Returns a data-frame with names time, hazard, conf.low and conf.high (cf. lower.ci and upper.ci provided in the object).

Arguments

x

bshazard object

...

other arguments

Examples

Run this code
##---- 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))
  }

Run the code above in your browser using DataLab