2012年3月15日 星期四

The Stata Do-File: Agrest07_Aspirin&MI.do

The Stata Do-File: Agrest07_Aspirin&MI.do
The Do-File syntax is:
*Agresti (2007) page 27, Table 2.3: Aspirin and MI


*use "immediate tabulate (tabi)" command to contruct a cross-table and compute statisitcs
tabi 189 10845\ 104 10933, row all exact


*use "case-control(cc)" or "logit" command to compute odds ratio (OR)
generate MI=(col==1)

沒有留言:

張貼留言