Wow! [General Sta­tis­tics]

posted by Helmut Homepage – Vienna, Austria, 2013-01-09 17:10 (4904 d 15:37 ago) – Posting: # 9805
Views: 9,634

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
23,654 posts in 4,992 threads, 1,570 registered users;
131 visitors (0 registered, 131 guests [including 19 identified bots]).
Forum time: 09:48 CEST (Europe/Vienna)

The idea is to try and give all the information to help others
to judge the value of your contribution;
not just the information that leads to judgment
in one particular direction or another.    Richard Feynman

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