188.Proportions and their Confidence Intervals
(2013-05-22 06:16:11)
标签:
ratesci杂谈 |
分类: 统计分享 |
Introduction
A proportion refers to the fraction of
the total that possesses a certain attribute. Estimating the
confidence interval for the binomial proportion is not a challenge
any more in statistics. The FREQ procedure in SAS will do the
entire job for you without programming any formula.
The following analysis was from a simulated study which is
involving four different groups, i.e., test, placebo, standard and
other, during a certain period of time, to compare the crude
proportions of positive responses to a
Code
proc format; value OTfmt 1 ='positive' 2 ='negative' 3 ='unknown' ; run; data respire;
test
placebo standard 1 34 standard 2 108 standard 3 3
other ; proc freq data =respire order=data noprint;
run; ods select BinomialProp BinomialCLs; proc freq data =list order=data;
|
Results (selected)
Proportion of positive response for test
group.
The SAS System
------------------------------------------- treat=test -------------------------------------------
|
------------------------------------------ treat=other -------------------------------------------
|