Calculate confidence intervals

proc FREQ Data = DATAIN;
    by Group;
    Tables var / missprint nowarn Binomial (Level = '. 1' Cl = Exact) Alpha = 0.05;
    weight n-/ ZERO; (situation make the confidence interval, the number of considered occurrence 0 occurs)
    Output binomialcls = Cl ODS;
RUN;
ODS Output Close;

datain the following format:
 
Group (packet) Var (opposed to each classified event, eg: occurrence / no occurrence) (the number in each case) N
. 1 0. 5
. 1. 1. 6
2 2 0
2. 1. 4
. 3. 5 0
313

You will get confidence intervals occur in each group.

Guess you like

Origin www.cnblogs.com/jwcutey/p/12159177.html