PowerTOST’s functions with as.character(design) [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2020-05-13 20:55 (1879 d 22:07 ago) – Posting: # 21436
Views: 11,234

Dear Detlew,

❝ Don't worry. Many R users are fallen or will fall into this trap I think, amongst others me.


Count me in.

❝ ❝ Shall we add a line to PowerTOST’s functions as a precaution?

❝ ❝   if (is.factor(design)) design <- as.character(design)


❝ Not a bad idea. But don't really know if this is absolutely necessary and if it pays the effort.


It’s easy for us. But you’re right: Duno how many times a user would set up a data.frame and call the design-argument in a loop.

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,427 posts in 4,929 threads, 1,676 registered users;
30 visitors (0 registered, 30 guests [including 12 identified bots]).
Forum time: 19:03 CEST (Europe/Vienna)

Many people tend to look at programming styles and languages like religions:
if you belong to one, you cannot belong to others.
But this analogy is another fallacy.    Niklaus Wirth

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