5Means
is a one-sided upper condence limit for μ. Thus, from the example, the
upper 95 percent condence limit for μ is
Xt
S
n
99.9 1.729
3.4
20
101.2
1
+=
−β
.
Computational considerations:
Example: n = 25, β = 0.05, μ
0
= 10.00
• SAS code
libname stuff 'H:\Personal Data\Equivalence & Noninferiority\
Programs & Output';
data calc;
set stuff.d20121029_test_2_1_example_data;
run;
proc means data = calc;
var X mu0 beta;
output out = onemean MEAN = xbar popmu betaprob STD = sd N =
n1;
run;
data outcalc;
set onemean;
se = sd/sqrt(n1);
lowlim = xbar + tinv(1-betaprob,n1-1)*se;
run;
proc print data = outcalc;/* has vars xbar popmu betaprob n1
se lowlim */
run;
The SAS System 07:03 Sunday, October 28, 2012 13
Obs _TYPE_ _FREQ_ xbar popmu betaprob sd n1 se lowlim
1 0 25 9.68 10.00 0.05 1.00 25 0.20092 10.0266
• JMP Data Table and formulas (Figure2.2):