Wow! [General Sta­tis­tics]

posted by Helmut Homepage – Vienna, Austria, 2013-01-09 17:10 (4095 d 19:18 ago) – Posting: # 9805
Views: 7,075

Dear Detlew!

❝ Do you believe the subject line?


First: no.

❝ If not, have a look on the following code :cool::


Second: yes. Unbelievable.

power.sim2x2(CV=0.3, n=12, GMR=1.25, details=T)

1e+06 sims. Time elapsed (sec):

   user  system elapsed

   0.50    0.05    0.55

[1] 0.033578


Amazing. With roundit=T I got 0.033605. Same value if I switch lines 65–66 to R’s round(). With my original code I got 0.033236 (unrounded) and 0.033786 (R’s rounding), but run-time was ~30 minutes.
Concerning the question at the top of your source code: I think so but I’m not sure as well. BTW, couldn’t figure out how to modify the code for imbalanced sequences.

Just discovered that I’m not the first simulator. See Chapter 4.2.1 of Chow & Liu (any edition).

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
22,957 posts in 4,819 threads, 1,639 registered users;
73 visitors (0 registered, 73 guests [including 7 identified bots]).
Forum time: 12:29 CET (Europe/Vienna)

Nothing shows a lack of mathematical education more
than an overly precise calculation.    Carl Friedrich Gauß

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