R-Inferno [🇷 for BE/BA]

posted by d_labes  – Berlin, Germany, 2018-01-23 16:03 (2282 d 10:25 ago) – Posting: # 18270
Views: 4,664

Hi Helmut, hi ElMaestro,

❝ that’s strange...

In deed!

The answer to that problem:
R is an interactive language and tries to save the user from keystrokes.
Partial match of names is one of these tries.
See Patrick Burns R-Inferno, Paragraph "8.1.20 partial matching can partially confuse".

That means what we see in case of power.RSABE()$n is the value of power.RSABE()$nlast.
Try:
r2 <- sampleN.RSABE(CV=0.3, theta0=0.95, print=F)
r2$n
# will give 27, the original nlast
r2$nlast <- 100
r2$n
# will give our changed content nlast=100


sampleN.TOST() doesn't have a return parameter which could be matched with n.
Thefore we obtain correctly NULL.

❝ ... In the functions of PowerTOST design is character variable, but Design is a 1-level factor.

Thats the known crazy default behaviour if character variables are incorporated in data.frames.
The lazy author of the functions had forgotten to use the argument stringsAsFactors in creating the return data.frame. Have his butt's :-D. Also for capitalizing Design.

Regards,

Detlew

Complete thread:

UA Flag
Activity
 Admin contact
22,993 posts in 4,828 threads, 1,655 registered users;
57 visitors (0 registered, 57 guests [including 8 identified bots]).
Forum time: 03:29 CEST (Europe/Vienna)

So far as I can remember,
there is not one word in the Gospels
in praise of intelligence.    Bertrand Russell

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