Weidson ☆ Brazil, 2021-12-22 19:47 (1218 d 10:56 ago) Posting: # 22709 Views: 4,067 |
|
Dear Friends, I would like to understand why the code bellow is not working. This code I was take out on the page: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3817376/. Would it be possible for any BEBAC member to adapt it to work? I need of the a graphics tool (for example: ggplot2) that to make graphics dinamic way as we can make at Phoenix WinNonlin. (ggplot2) In true, I need of a dinamic code (for example: ggplot2) for to plot a graphic of Individual plasma concentration profiles sorted by treatment and period with whih the mean. Example: ![]() |
mittyri ★★ Russia, 2021-12-22 22:34 (1218 d 08:09 ago) @ Weidson Posting: # 22710 Views: 3,243 |
|
Hi Weidson, ❝ I would like to understand why the code bellow is not working. - the code in the paper cannot work due to different quotation marks used (left and right), they should be substituted to simple quotations (" or ') - there are some parts of the code not presented in the paper So the best way is to use supplementary material as suggested Below you can find R code from there. Note that the article is old, so some ggplot2 functions are deprecated, but still working.
library(nlme) — Kind regards, Mittyri |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2021-12-22 23:44 (1218 d 06:59 ago) @ Weidson Posting: # 22712 Views: 3,359 |
|
Hi Weidson, a couple of problems:
❝ […] I need of a dinamic code for to plot a graphic of Individual plasma concentration profiles sorted by treatment and period with whih the mean. In practice use the nominal time for grouping.
However, my workaround is also not ideal. It resolves the issue at the last time point but there are still different concentrations aggregated to the same time point in some subjects, e.g.,
Theoph$Dose is actually Dose/kg. After more detective work based on Table I: The product was Slophyllin aqueous syrup (Dooner Laboratories), 80 mg theophylline per 15-ml dose.
PS: The median in your script is fine. If prefer the geometric mean. Anything is better than the arithmetic mean in the original script. ![]() PPS: Arghl! Mittyri was faster. ![]()
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |