yjlee168 ★★★ ![]() ![]() Kaohsiung, Taiwan, 2019-08-19 12:14 (520 d 03:16 ago) Posting: # 20502 Views: 3,791 |
|
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.8.9:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear Download link (updated) -> here |
yjlee168 ★★★ ![]() ![]() Kaohsiung, Taiwan, 2019-08-20 14:04 (519 d 01:26 ago) @ yjlee168 Posting: # 20505 Views: 2,918 |
|
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.8.9:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear Download link (updated) -> here |
d_labes ★★★ Berlin, Germany, 2019-08-24 16:26 (514 d 23:04 ago) @ yjlee168 Posting: # 20512 Views: 2,856 |
|
Dear Yung-jin, » I re-checked the codes and found » as.numeric(substr("parallel", 1, 1)) » [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 sequences("parallel",tmts=c("R","T")) .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 19:32 (514 d 19:58 ago) @ d_labes Posting: # 20514 Views: 2,862 |
|
Dear Detlew, Thank you so much for your replied messages. It confirms what I found. — All the best, -- Yung-jin Lee bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear Download link (updated) -> here |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2019-08-25 13:43 (514 d 01:48 ago) @ yjlee168 Posting: # 20515 Views: 2,893 |
|
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 15:19 (514 d 00:11 ago) @ Helmut Posting: # 20516 Views: 2,995 |
|
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.8.9:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear Download link (updated) -> here |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2019-08-25 16:26 (513 d 23:04 ago) @ yjlee168 Posting: # 20517 Views: 2,848 |
|
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 17:08 (513 d 22:22 ago) @ Helmut Posting: # 20518 Views: 2,829 |
|
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 ?sequences . Only designs listed there are implemented. Hence, you can’t randomize a parallel design with >2 groups.— All the best, -- Yung-jin Lee bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear Download link (updated) -> here |
d_labes ★★★ Berlin, Germany, 2019-08-25 19:39 (513 d 19:51 ago) @ Helmut Posting: # 20519 Views: 2,837 |
|
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 |