I am trying to reproduce a supplementary example 2 Continuous response: one dose-response curve from the drc package.
When trying to run
coeftest(ryegrass.LL.4, vcov = sandwich)
, I get the following error:
Error in UseMethod("estfun") : no applicable method for 'estfun' applied to an object of class "drc".
I tried to google the error with no success and to use the vcov.
instead of vcov
(since vcov. is automatically suggested in R, but article uses vcov) and still got the same error.
Any ideas how to solve this?
Session info:
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] lmtest_0.9-38 zoo_1.8-8 sandwich_3.0-0 drc_3.0-1 MASS_7.3-53
loaded via a namespace (and not attached):
[1] zip_2.1.1 Rcpp_1.0.5 pillar_1.4.7 compiler_4.0.3 cellranger_1.1.0
[6] forcats_0.5.0 tools_4.0.3 lifecycle_0.2.0 tibble_3.0.4 lattice_0.20-41
[11] pkgconfig_2.0.3 rlang_0.4.8 Matrix_1.2-18 openxlsx_4.2.3 rstudioapi_0.13
[16] curl_4.3 mvtnorm_1.1-1 haven_2.3.1 xfun_0.18 rio_0.5.16
[21] vctrs_0.3.5 gtools_3.8.2 hms_0.5.3 grid_4.0.3 data.table_1.13.4
[26] R6_2.5.0 plotrix_3.7-8 survival_3.2-7 readxl_1.3.1 foreign_0.8-80
[31] multcomp_1.4-15 TH.data_1.0-10 carData_3.0-4 car_3.0-10 magrittr_1.5
[36] scales_1.1.1 codetools_0.2-16 splines_4.0.3 ellipsis_0.3.1 abind_1.4-5
[41] colorspace_2.0-0 tinytex_0.26 stringi_1.5.3 munsell_0.5.0 crayon_1.3.4