Buffon's needle [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2018-10-10 14:46 (2192 d 08:08 ago) – Posting: # 19427
Views: 26,463

Hi Nastia,

somehow I missed your post. Sorry.

❝ I was interested how it works on real data. […] That is in 26.42% successful studies post hoc power was less than 80%. Why not in 50%? I suppose it is connected with two facts: the real number of subjects is always greater than calculated because researches include drop-outs and there exists the restricted limit of minimum of subjects in the study.


Very interesting!

❝ P.S.

if (length(packages[!inst]) > 0) install.packages(packages[!inst])

❝ One needs "s" on the end of "package(s)"?


Yes. That’s how the function of library utils is called.
Try ?install.packages and ?install.package
Also packages[!inst] not package[!inst]. Corrected in the OP.

cat("Results of", nsims, "simulated studies:\n")); summary(res)

❝ extra ")"?


THX, wrong! Corrected in the OP.

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,249 posts in 4,885 threads, 1,652 registered users;
65 visitors (0 registered, 65 guests [including 10 identified bots]).
Forum time: 22:55 CEST (Europe/Vienna)

The rise of biometry in this 20th century,
like that of geometry in the 3rd century before Christ,
seems to mark out one of the great ages or critical periods
in the advance of the human understanding.    R.A. Fisher

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