sury ★ India, 2019-08-05 14:30 (1724 d 05:28 ago) Posting: # 20472 Views: 6,866 |
|
Hii all, I am very beginner for the R-Coding and have searched for the code for 2X2 Bio-equivalence code in the forum Can anyone help me in this regards as i got to know that lm () do the same thing as that of the PROC GLM in the SAS but i am nt aware of how to use the function for my bio equivalence study. As i cant afford the licenced SAS Software, i want to run my analysis in r. Any help in this regards is highly appreciated. |
yjlee168 ★★★ ![]() ![]() Kaohsiung, Taiwan, 2019-08-05 16:23 (1724 d 03:35 ago) @ sury Posting: # 20473 Views: 6,184 |
|
Hi sury, If you do "Search...", you can find this gem. The codes are included in that .rtf file. ❝ ... As i cant afford the licenced SAS Software, i want to run my analysis in r. — 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 |
sury ★ India, 2019-08-06 13:35 (1723 d 06:24 ago) @ yjlee168 Posting: # 20477 Views: 6,065 |
|
❝ If you do "Search...", you can find this gem. The codes are included in that .rtf file. Ya got it, thanks for the help. ![]() ❝ ❝ ... As i cant afford the licenced SAS Software, i want to run my analysis in r. |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2019-08-05 18:23 (1724 d 01:35 ago) @ sury Posting: # 20474 Views: 6,123 |
|
Hi sury, an example in plain R. Once you have the data, three lines of code (one for the model and one each for the PE and CI):
Note that this is the fixed-effects model recommended by the EMA. However, the nested structure subject(sequence) is superfluous and the model over-specified. Try print(mod) and you will see many lines which are NA (not specific to R, you get the same in any software). If we change the model to the simple one
Identical PE and CI. No more NA s if you try print(mod) . ![]() If you want subjects as a random effect and degrees of freedom like SAS Proc Mixed DDFM=CONTAIN:
Similar but Satterthwaite’s degrees of freedom like Proc Mixed DDFM=SATTERTHWAITE:
Always a good idea to learn the basics of R. However, consider Yung-jin’s nice package bear .— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
sury ★ India, 2019-08-06 13:33 (1723 d 06:25 ago) @ Helmut Posting: # 20476 Views: 6,204 |
|
Thanks helmut, tried the above code and it is matching with the SAS Results. ❝ Always a good idea to learn the basics of R. Ya, You are right and working on it to improve my r basics, but however i have searched for many websites to learn the Bio equivalence packages, but not able to find how can i implement it. ❝ However, consider Yung-jin’s nice package Yes, i heard about the BEAR Package, and also installed the same package. when i am trying to use the package, it showing the warning message "package ‘bear’ was built under R version 3.5.2". i dont know how to clear this error and how can i call the package for using in the Bio equivalence study. Any help in this regards is highly appreciated. Also want to know about the PKNCA package on R. How can i use the package. Does the package covers all the parameters as that of the WinNonlin. Does it gives the same result as that in the Phoenix WinNonlin Software Thanks in Advance.. Edit: Full quote removed. Please delete everything from the text of the original poster which is not necessary in understanding your answer; see also this post #5! [Helmut] |
ElMaestro ★★★ Denmark, 2019-08-06 14:10 (1723 d 05:48 ago) @ sury Posting: # 20478 Views: 6,061 |
|
Hi sury, ❝ Yes, i heard about the BEAR Package, and also installed the same package. when i am trying to use the package, it showing the warning message "package ‘bear’ was built under R version 3.5.2 ". i dont know how to clear this error and how can i call the package for using in the Bio equivalence study. Any help in this regards is highly appreciated. It sounds like you need to study some basics of R: How your GUI or commandline works, what packages are, how to use a package (notably also learning to decipher the help files that are a standard feature of packages), what the difference is between a warning and an error, and so forth. It is not too hard if you have a little idea about coding, but it may indeed take a lot of time. If you are serious, that time is well invested. — Pass or fail! ElMaestro |
yjlee168 ★★★ ![]() ![]() Kaohsiung, Taiwan, 2019-08-06 14:31 (1723 d 05:27 ago) @ sury Posting: # 20479 Views: 6,061 |
|
Hi sury, It still works like a charm, though the current bear release was built under R v3.5.2 (I guess your platform should be macOS). If you like to build it yourself for current R v3.6.1 from source, you can download the source tarball from Sourceforge, and place the tarball file under Home directory. Type R CMD INSTALL bear_2.8.4.tar.gz under a terminal. That'll be all. Good luck.❝ ... it showing the warning message "package ‘bear’ was built under R version 3.5.2 ". i dont know how to clear this error and how can i call the package for using in the Bio equivalence study. Any help in this regards is highly appreciated. — 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-06 14:35 (1723 d 05:23 ago) @ sury Posting: # 20480 Views: 6,111 |
|
Hi sury, ❝ Yes, i heard about the BEAR Package, and also installed the same package. when i am trying to use the package, it showing the warning message "package ‘bear’ was built under R version 3.5.2". i dont know how to clear this error… This is a warning, not an error. There is no problem using any package in a higher version of R. If a package tries to use a function which was deprecated* in your R-version, you will get a specific warning pointing to the function and generally an information which function should be used instead or how the call should be modified. Then you have two options:
.rda ) are associated with the last version you installed.❝ … and how can i call the package for using in the Bio equivalence study. Any help in this regards is highly appreciated. It’s straightforward. Though Yung-jin can explain it better than I could. ![]() ❝ Also want to know about the PKNCA package on R. How can i use the package. PKNCA is a nice one as well. Why don’t you consult the man-pages as usual?
❝ Does the package covers all the parameters as that of the WinNonlin. Does it gives the same result as that in the Phoenix WinNonlin Software AFAIK, yes. Once you started the main man-pages (see above) click
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |