USEPA / CompTox-ToxCast-tcplFit2

A Concentration-Response Modeling Utility
https://usepa.github.io/CompTox-ToxCast-tcplFit2/
Other
1 stars 0 forks source link

86 vignette update for version release v 017 of tcplfit2 #87

Closed gracezhihuizhao closed 3 months ago

gracezhihuizhao commented 5 months ago

This PR covers the updates needed for the vignette listed in #86

gracezhihuizhao commented 4 months ago

Please double check the log-scaling for the hill and gain-loss are working.

@sedavid01 Hi Sarah, I looked into it and see where the problem is. When I generate a series of X's for plotting the line I do conc_plot = seq(min(conc), max(conc), length = 100) with conc in normal scale, and take log10(conc_plot) if log is used. However the X's are evenly spread in the normal scale does not mean they are evenly spread in the log scale. In fact like example 1 where the minimum conc is 0.03 and the maximum conc is 100, the sequence turned out to have most of the points fall between 1 and 100 and only one point falls between 0 and 1, and resulted in only one point being below 0 after taking log10, thus the linear line. So the calculation is technically not wrong but the execution and the plot can definitely be improved. I will make some updates to make sure the simulated X's are evenly taken over the range on both the normal and log10 scales.

madison-feshuk commented 3 months ago

@brown-jason @kpaulfriedman here is a pdf of vignettes combined. Let me know if additional edits are needed. Otherwise, package should be ready for a tech review. tcplfit2_vignettes_combined_26JUN2024.pdf