Buffon's needle [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2018-10-10 12:46  – Posting: # 19427
Views: 10,936

Hi Nasty,

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.

Helmut Schütz

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

Complete thread:

 Mix view
Bioequivalence and Bioavailability Forum |  Admin contact
19,478 posts in 4,133 threads, 1,333 registered users;
online 9 (0 registered, 9 guests [including 8 identified bots]).
Forum time (Europe/Vienna): 21:01 CEST

But it is in matters beyond the limits of mere rule
that the skill of the analyst is evinced.
He makes in silence a host of observations and inferences…    Edgar Allan Poe

BEBAC Ing. Helmut Schütz