yjlee168 ★★★ Kaohsiung, Taiwan, 2019-08-19 14:14 (1883 d 22:17 ago) Posting: # 20502 Views: 6,369 |
|
Dear Detlew and all others, I recently tried to re-write GUI for your developed R package randomizeBE . And I got some error messages about the function sequences. Here is what I got require("randomizeBE") Thanks in advanced. — All the best, -- Yung-jin Lee bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan https://www.pkpd168.com/bear Download link (updated) -> here |
yjlee168 ★★★ Kaohsiung, Taiwan, 2019-08-20 16:04 (1882 d 20:27 ago) @ yjlee168 Posting: # 20505 Views: 5,072 |
|
Dear all, I re-checked the codes and found as.numeric(substr("parallel", 1, 1)) Q1: So this is where that warning message comes from. Q2: Nope, cannot do it with sequences("parallel",tmts=c("R","T")) .Q3: Ok, it still works and it just happens to design=="parallel". Q4: not implemented yet for sure. — All the best, -- Yung-jin Lee bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan https://www.pkpd168.com/bear Download link (updated) -> here |
d_labes ★★★ Berlin, Germany, 2019-08-24 18:26 (1878 d 18:05 ago) @ yjlee168 Posting: # 20512 Views: 5,014 |
|
Dear Yung-jin, ❝ I re-checked the codes and found ❝ ❝ [1] NA ### from 'as.numeric("p")' ❝ sequences("parallel") ❝ [1] "A" "B" ❝ Warning message: ❝ In sequences("parallel") : NAs introduced by coercion ❝ ❝ Q1: So this is where that warning message comes from. Correct. You have discovered a bug. Congratulation . ❝ Q2: Nope, cannot do it with Warning still alive. ❝ Q3: Ok, it still works and it just happens to design=="parallel". Also correct. It works, but with a stupid warning. ❝ Q4: not implemented yet for sure. Correct, not implemented yet. A new version with bug fix is on its way to CRAN. — Regards, Detlew |
yjlee168 ★★★ Kaohsiung, Taiwan, 2019-08-24 21:32 (1878 d 14:59 ago) @ d_labes Posting: # 20514 Views: 5,003 |
|
Dear Detlew, Thank you so much for your replied messages. It confirms what I found. — All the best, -- Yung-jin Lee bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan https://www.pkpd168.com/bear Download link (updated) -> here |
Helmut ★★★ Vienna, Austria, 2019-08-25 15:43 (1877 d 20:48 ago) @ yjlee168 Posting: # 20515 Views: 5,151 |
|
Dear Yung-jin, sources of randomizeBE 0.3-5 on CRAN since yesterday. Your test cases:
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
yjlee168 ★★★ Kaohsiung, Taiwan, 2019-08-25 17:19 (1877 d 19:12 ago) @ Helmut Posting: # 20516 Views: 5,209 |
|
Dear Helmut, ❝ sources of randomizeBE 0.3-5 on CRAN since yesterday. Thank you for your messages. I just got upgraded. packageVersion("randomizeBE") »... ❝ sequences("parallel") ❝ [1] "A" "B" ❝ ❝ sequences("parallel", tmts=c("R", "T1", "T2")) ❝ Error in sequences("parallel", tmts = c("R", "T1", "T2")) : ❝ Treatment codes must have 2 entries![/code][/indent] Right. Though sequences() dose not work with tmts=c("R","T") or tmts=c("R","T1","T2"), RL4() still works very well. RL4(24,seqs=c("R","T")) That means I cannot use RL4(...,seqs=seqs) where seqs=squences(...) if I prefer using "R", "T", "T1", "T2" for treatment abbreviated, instead of "A", "B", "C" etc.. Am I correct? — All the best, -- Yung-jin Lee bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan https://www.pkpd168.com/bear Download link (updated) -> here |
Helmut ★★★ Vienna, Austria, 2019-08-25 18:26 (1877 d 18:05 ago) @ yjlee168 Posting: # 20517 Views: 5,036 |
|
Hi Yung-jin, ❝ That means I cannot use RL4(...,seqs=seqs) where seqs=squences(...) if I prefer using "R", "T", "T1", "T2" for treatment abbreviated, instead of "A", "B", "C" etc.. Am I correct? I’m not sure whether I understand you correctly. See ?sequences . Only designs listed there are implemented. Hence, you can’t randomize a parallel design with >2 groups.However,
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
yjlee168 ★★★ Kaohsiung, Taiwan, 2019-08-25 19:08 (1877 d 17:23 ago) @ Helmut Posting: # 20518 Views: 4,942 |
|
Dear Helmut, You're right. Great and many thanks. I just get confused. It is much more convenient to use seqs=sequences(...) in RL4(...,seqs=seqs) . Sorry about that. ❝ ... I’m not sure whether I understand you correctly. See — All the best, -- Yung-jin Lee bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan https://www.pkpd168.com/bear Download link (updated) -> here |
d_labes ★★★ Berlin, Germany, 2019-08-25 21:39 (1877 d 14:52 ago) @ Helmut Posting: # 20519 Views: 5,009 |
|
Dear both, sequences() and williams() are only convenience functions to give you the sequences of a design from its short-hand name.And as Helmut already stated: "parallel" is the short hand for 2-group parallel design and can't therefore used with the treatment codes T1, T2 and R.But main function RL4() accepts of course the "sequences" (aka groups) T1, T2 and R as noticed above and gives you a randomization list also for that design (3-group parallel) not listed in sequences() .BTW: Since today randomizeBE v0.3-5 is available at CRAN also as windows binaries. — Regards, Detlew |