The amount of anginal coronary artery disease chest pain is
The amount of anginal (coronary artery disease) chest pain is categorized by the Cana- dian Heart Classification from mild (class I) to severe (class IV).
Use R with prop.trend.test and glm for logistic regression.
Anginal Pain Classification IV Surgical Mortality Yes No % surgical mortality 2.4 1.4 1.8 6 194759 242 1371 2494 1314 X231.19 p=.TE-7Solution
> library(stats)
 > yes<-c(6,19,47,59)
 > no<-c(242,1371,2494,1314)
 > score<-c(1:4)
>total<-yes+no
> prop.trend.test(yes,total,score)
This gives result
Chi-squared Test for Trend in Proportions
data: yes out of total ,
 using scores: 1 2 3 4
 X-squared = 18.829, df = 1, p-value = 1.429e-05
 Since P-value is very less we reject the null hypothesis.

