survfit_fast {gestate}R Documentation

Create lifetable quickly

Description

Simple, fast function to generate basic lifetables. No error checking is performed.

Usage

survfit_fast(time, events)

Arguments

time

Vector of event/censoring times

events

Vector of indicators for whether each time is an event (1) or a censoring (0). Must be same length vector as time argument.

Value

Returns a list format lifetable with the following entries:

Author(s)

James Bell

Examples

survfit_fast(c(1,2,3,3,4,5),c(1,0,1,1,0,1))

[Package gestate version 1.6.0 Index]