
716 18 Inference for Censored Data and Survival Analysis
h(t, x
i
)/h(t, x
j
) =exp{(x
0
i
−x
0
j
)β}
is free of t, motivating the name proportional. Also, for a subject i,
S(t, x
i
) =
(
S
0
(t)
)
exp{x
0
i
β}
,
where S
0
(t) is the survival function corresponding to the baseline hazard h
0
(t).
This follows directly from (18.1) and H(t, x
i
) = H
0
(t)exp{x
0
i
β}.
In MATLAB,
coxphfit fits the Cox proportional hazards regression model,
which relates survival times to predictor variables. The following example
uses
coxphfit to fit Cox’s proportional hazards model.
Example 18.10. Mayo Clinic Trial in PBC. Primary biliary cirrhosis (PBC)
is a rare but fatal chronic liver disease of unknown cause, with a prevalence of
about 1/20,000. The primary pathologic event appears to be the destruction of
interlobular bile ducts, which may be mediated by immunologic mechanisms.
The PBC data set available at StatLib is an excerpt from the Mayo Clinic
trial in PBC of the liver conducted between 1974 and 1984. From a total of
424 patients that met eligibility criteria, 312 PBC patients participated in the
double-blind, randomized, placebo-controlled trial of the drug D-penicillamine.
Details of the trial can be found in Markus et al. (1989).
Survival statuses were recorded for as many patients as possible until July
1986. By that date, 125 of the 312 patients had died and 187 were censored.
The variables contained in the data set
pbc.xls|dat are described in the
following table:
casen = pbc(:,1); %case number 1-312
lived = pbc(:,2); %days lived (from registration to study date)
indicatord = pbc(:,3); %0 censored, 1 death
treatment = pbc(:,4); %1 - D-Penicillamine, 2 - Placebo
age = pbc(:,5); %age in years
gender = pbc(:,6); %0 male, 1 female
ascites= pbc(:,7); %0 no, 1 yes
hepatomegaly=pbc(:,8); %0 no, 1 yes
spiders = pbc(:,9); %0 no, 1 yes
edema = pbc(:,10); %0 no, 0.5 yes/no therapy, 1 yes/therapy
bilirubin = pbc(:,11); %bilirubin [mg/dl]
cholesterol = pbc(:,12); %cholesterol [mg/dl]
albumin = pbc(:,13); %albumin [gm/dl]
ucopper =pbc(:,14); %urine copper [mg/day]
aphosp =pbc(:,15); %alcaline phosphatase [U/liter]
sgot = pbc(:,16); %SGOT [U/ml]
trig =pbc(:,17); %triglycerides [mg/dl]
platelet = pbc(:,18); %# platelet count [#/mm^3]/1000
prothro = pbc(:,19); %prothrombin time [sec]
histage = pbc(:,20); %hystologic stage [1,2,3,4]
To illustrate the CPH model, in this example we selected four predictors
and formed a design matrix X as