llkknnllyytt 发表于 2015-5-19 11:37 
还有问下RR值的可信区间能求吗
proc genmod data=example1 order=data;
class hp(param=ref ref=first) path(param=ref ref=first);
model c=hp path/dist=poisson
link=log offset=ln type1 type3;
/*hp2、3、4、5与1的比较*/
estimate 'hp_rr21' hp -1 1 0 0 0/exp;
estimate 'hp_rr31' hp -1 0 1 0 0/exp;
estimate 'hp_rr41' hp -1 0 0 1 0/exp;
estimate 'hp_rr51' hp -1 0 0 0 1/exp;
/*path2、3、4、5、6、7、8与1的比较*/
estimate 'path_rr21' path -1 1 0 0 0 0 0 0/exp;/*path_rr21名字代表2与1对比*/
estimate 'path_rr31' path -1 0 1 0 0 0 0 0/exp;
estimate 'path_rr41' path -1 0 0 1 0 0 0 0/exp;
estimate 'path_rr51' path -1 0 0 0 1 0 0 0/exp;
estimate 'path_rr61' path -1 0 0 0 0 1 0 0/exp;
estimate 'path_rr71' path -1 0 0 0 0 0 1 0/exp;
estimate 'path_rr81' path -1 0 0 0 0 0 0 1/exp;
run;
以hp=1为对照,hp=2的RR=1.5491,置信区间为