documentation update: use of anova.drc() with one model
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:
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:
I looked at the source code, and it appears that this is by design.
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