Moses CI [Nonparametrics]

posted by Helmut Homepage – Vienna, Austria, 2009-01-27 13:39 (5943 d 16:20 ago) – Posting: # 3142
Views: 15,674

Dear Martin!

❝ in the case that you have to use SAS, you may find this link of interest.


Haha,[image]
To quote the reference:
Cα is an integer that approximates the ordered value of the lower confidence interval. […] In general the value […] is not an integer, so round to the closest integer and use that in the confidence interval equation above.

Nice, but wrong. Cα from the normal approximation should be rounded to the next lower integer, not to the next closest integer. In the code calpha=round() should be replaced by calpha=int(). Comparing values obtained with the formula from the reference with the 900 (n=m=3 to n=m=32) exact values, one would get the correct value in 815 (90.56%) of cases, a conservative value in 81 (9.00%) of cases, but also in 4 (0.44%) of cases a liberal value (α ≥0.05).
Examples:
  1. n=m=12, Cα 43.51, next lower integer 43, next closest integer 44, exact 43.
  2. n=30, m=29, Cα 326.51, next lower integer 326, next closest integer 327, exact 326.
If int() is used, the confidence interval is always conservative (≤ nominal α), which may not be the case if round() is used.

The reference also states
For large samples (>30) Cα is a integer approximated by […]
but uses the approximation irrespective of the sample size. :-D

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,672 registered users;
78 visitors (0 registered, 78 guests [including 6 identified bots]).
Forum time: 06:59 CEST (Europe/Vienna)

[Those] who have an excessive faith in their theories or in their
ideas are not only poorly disposed to make discoveries, but they
also make very poor observations.    Claude Bernard

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5