Closed bl6594 closed 4 years ago
I just tried the code in an older version of R, and it works there.
sessionInfo(package = c('drc','sandwich'))
R version 3.6.2 (2019-12-12) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages: character(0)
other attached packages: [1] drc_3.0-1 sandwich_2.5-1
I am running the code in example 1 from slides of 'Advances in dose-response analysis' presented at 'useR! Toulouse, July 12 2019'.
the code I am running are:
library(drc) selenium.LL.2.1 <- drm(dead/total ~ conc, curveid = type, weights = total, data = selenium, fct = LL.2(), type = "binomial")
library(sandwich) ED(selenium.LL.2.1, c(50), interval = "delta", vcov. = sandwich)
received the message:
Error in UseMethod("estfun") : no applicable method for 'estfun' applied to an object of class "drc"
session information
sessionInfo(package = c('drc','sandwich')) says:
R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages: character(0)
other attached packages: [1] drc_3.0-6 sandwich_2.5-2
Please help!