Spreadshit addiction [General Sta­tis­tics]

posted by yicaoting  – NanKing, China, 2011-10-01 07:36 (4965 d 04:13 ago) – Posting: # 7400
Views: 15,821

(edited on 2011-10-01 08:13)

Dear HS,

Thank you very much for your comparison of Dr. Russel Lenth's NctInv() in Excel with OO Calc and R.

Since Delta is a optional var in Dr. Russel Lenth's NctInv(), in case of data without NC variable, you can recode
NCtInv = Solve("tDummy", p, x, y)
as
'NCtInv = Solve("tDummy", p, x, y)
to omit the execution of this code, then NctInv() will work well in your spreadsheet.

The difference between Dr. Russel Lenth's NctInv() in Excel and R may be caused by the different results of BetaInv() function generated with Excel and R.
Since I didn't install R in my computer, here I can only compare BetaInv() function in Excel with that in SAS.

Excel 2003:
=BETAINV(0.001,2,4)=0.010101318359375

SAS 9.1:
=BETAINV(0.001,2,4)=0.0101017879

OO Calc 3.3
=BETAINV(0.001,2,4)=0.0101017878837378

Nevertheless, Dr. Russel Lenth's NctInv() is a highly useful UDF for our calculation, although there may be a very very very small bias. It should be noted this bias is not cause by the algorithms itself but by the Excel's BETAINV(). But the lucky thing is MS has improved the precision of BETAINV() from 0.0000003 in Excel 2003 to about 10^(-15) in Excel 2007. Excel statistical functions: BETAINV


Based on the result of R, It seems that BETAINV() in OO Calc has higher precision than that in Excel.

Dear HS, do you agree with me?

BTW: Today is our National Day (since 1949-Oct-1), the whole country is full of happiness. I can't help myself to give my best wishes to all of you and your famaily and your country.

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,670 registered users;
64 visitors (0 registered, 64 guests [including 7 identified bots]).
Forum time: 11:50 CEST (Europe/Vienna)

My doctor gave me six months to live,
but when I couldn’t pay the bill
he gave me six months more.    Walter Matthau

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