summary.Lexis {Epi}R Documentation

Summarize transitions and risk time from a Lexis object

Description

A two-way table of records and transitions classified by states (lex.Cst and lex.Xst), as well the risk time in each state.

Usage

  ## S3 method for class 'Lexis':
  summary( object, simplify=TRUE, scale=1, ... )
  ## S3 method for class 'summary.Lexis':
  print( x, ..., digits=2 )
  

Arguments

object A Lexis object.
x A summary.Lexis object.
simplify Should rows with 0 follow-up time be dropped?
scale Scaling factor for the rates. The calculated rates are multiplied by this number.
digits How many digits should be used for printing?
... Other parameters - ignored

Value

An object of class summary.Lexis, a list with two components, Transitions and Rates, each one a matrix with rows classified by states where persons spend time, and columns classified by stated to which persons transit. The Transitions contains number of transitions and has two extra columns of total number events and total risk time attached. The Rates contians the transitions rates.

Author(s)

Bendix Carstensen, bxc@steno.dk

Examples

data( nickel )
# Lung cancer deaths and other deaths are coded 1 and 2
nic <- Lexis( data=nickel,
             entry=list(age=agein),
              exit=list(age=ageout,cal=ageout+dob,tfh=ageout-age1st),
       exit.status=factor( (icd > 0) + (icd %in% c(162,163)),
                           labels=c("Alive","Other","Lung") ) )
str( nic )
head( nic )
summary( nic )

[Package Epi version 1.0.12 Index]