drc icon indicating copy to clipboard operation
drc copied to clipboard

documentation update: use of anova.drc() with one model

Open adcascone opened this issue 7 months ago • 0 comments

Hello,

Thank you for creating this package! I am trying to understand how to use the drc:::anova.drc() function.

Based on the details in the package reference manual, I would expect that passing a single object to the ANOVA function would return an object of class anova that compares the non-linear regression model to a more general one-way or two-way anova as described on reference manual pg. 6:

Image

I therefore ran the following code:

library(drc)
ryegrass.LL.2 <- drm(rootl ~ conc, data = ryegrass, fct = LL.2())
drc:::anova.drc(ryegrass.LL.2)  

However, this returns the following error:

Image

I looked at the source code, and it appears that this is by design.

Image

Would it be possible to update the documentation to point users to the modelFit() function in the event one object is passed to anova.drc() if this is the function's intended use?

Thank you for your time! Arianna C.

--

R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.5 LTS

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] drc_3.0-1          MASS_7.3-61

adcascone avatar Apr 30 '25 15:04 adcascone