Subject: XploRe Application Guide
See XploRe: hazdat

Quantlet: haz01
Description: explains the use of quantlet hazdat which organizes the data for hazard regression in XploRe
Download: haz01.xpl

Code:
library("hazreg") 
y = 2|1|3|2|4|7|1|3|2        ; hypothetical survival
c = 3|1|5|6|1|6|2|4|5        ; hypothetical censoring
t = min(y~c,2)               ; censored time             
delta = (y<=c)               ; censoring indicator            
{data,ties} = hazdat(t,delta)                             
data
ties

Subject: XploRe Application Guide
See XploRe: hazdat

© MD*Tech - Method and Data Technologies, generated on 19.7.2000 .