bshazard: Functions to work with bshazard objects.

as.data.frame.bshazardR Documentation

Functions to work with bshazard objects.

Description

Convert a bshazard object to a data-frame.

Usage

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

Arguments

x

bshazard object

...

other arguments

Value

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

Examples

##---- 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))
  }

biostat3 documentation built on Oct. 29, 2024, 5:07 p.m.