-
Notifications
You must be signed in to change notification settings - Fork 304
tidy.drc does not calculate confidence intervals #798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
I can recreate the the same error with R 3.6.1 running on macOS:
|
How do you get confidence intervals for these objects normally? |
With the confint() function.
…On Fri, Dec 13, 2019, 15:27 alex hayes ***@***.***> wrote:
How do you get confidence intervals for these objects normally?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#798?email_source=notifications&email_token=AC2FUEKB2AQHGLZRBRVUQRLQYP43PA5CNFSM4JXFLEYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG3JPRY#issuecomment-565614535>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2FUEND7FS4D3FOGH3QIPLQYP43PANCNFSM4JXFLEYA>
.
|
library(drc)
#> Loading required package: MASS
#>
#> 'drc' has been loaded.
#> Please cite R and 'drc' if used for a publication,
#> for references type 'citation()' and 'citation('drc')'.
#>
#> Attaching package: 'drc'
#> The following objects are masked from 'package:stats':
#>
#> gaussian, getInitial
library(broom)
library(tidyverse)
mod <- drm(dead/total~conc, type,
weights = total, data = selenium, fct = LL.2(), type = "binomial")
confint(mod)
#> 2.5 % 97.5 %
#> b:1 -1.808258 -1.1988105
#> b:2 -1.115883 -0.5705842
#> b:3 -2.434489 -1.8925927
#> b:4 -1.783488 -1.1225642
#> e:1 225.155474 279.3556331
#> e:2 301.295321 455.6256335
#> e:3 108.138906 131.2875017
#> e:4 71.917971 105.6926148 Created on 2019-12-14 by the reprex package (v0.3.0) Session infodevtools::session_info()
#> - Session info ---------------------------------------------------------------
#> setting value
#> version R version 3.6.1 (2019-07-05)
#> os Windows 10 x64
#> system x86_64, mingw32
#> ui RTerm
#> language (EN)
#> collate English_United States.1252
#> ctype English_United States.1252
#> tz Europe/Berlin
#> date 2019-12-14
#>
#> - Packages -------------------------------------------------------------------
#> package * version date lib source
#> abind 1.4-5 2016-07-21 [1] CRAN (R 3.5.0)
#> assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.6.0)
#> backports 1.1.5 2019-10-02 [1] CRAN (R 3.6.1)
#> broom * 0.5.2.9003 2019-12-14 [1] local
#> callr 3.4.0 2019-12-09 [1] CRAN (R 3.6.1)
#> car 3.0-5 2019-11-15 [1] CRAN (R 3.6.1)
#> carData 3.0-3 2019-11-16 [1] CRAN (R 3.6.1)
#> cellranger 1.1.0 2016-07-27 [1] CRAN (R 3.5.1)
#> cli 2.0.0.9000 2019-12-12 [1] Github (r-lib/cli@ac2c18b)
#> codetools 0.2-16 2018-12-24 [1] CRAN (R 3.5.2)
#> colorspace 1.4-1 2019-03-18 [1] CRAN (R 3.6.0)
#> crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.1)
#> curl 4.3 2019-12-02 [1] CRAN (R 3.6.1)
#> data.table 1.12.8 2019-12-09 [1] CRAN (R 3.6.1)
#> DBI 1.0.0 2018-05-02 [1] CRAN (R 3.5.1)
#> dbplyr 1.4.2 2019-06-17 [1] CRAN (R 3.6.0)
#> desc 1.2.0 2019-11-11 [1] Github (r-lib/desc@61205f6)
#> devtools 2.2.1 2019-09-24 [1] CRAN (R 3.6.1)
#> digest 0.6.23 2019-11-23 [1] CRAN (R 3.6.1)
#> dplyr * 0.8.3.9000 2019-10-10 [1] Github (tidyverse/dplyr@dcfc1d1)
#> drc * 3.0-1 2016-08-30 [1] CRAN (R 3.5.2)
#> ellipsis 0.3.0 2019-09-20 [1] CRAN (R 3.6.1)
#> evaluate 0.14 2019-05-28 [1] CRAN (R 3.6.0)
#> fansi 0.4.0 2018-11-05 [1] Github (brodieG/fansi@ab11e9c)
#> forcats * 0.4.0 2019-02-17 [1] CRAN (R 3.5.2)
#> foreign 0.8-71 2018-07-20 [2] CRAN (R 3.6.1)
#> fs 1.3.1 2019-05-06 [1] CRAN (R 3.6.0)
#> generics 0.0.2 2019-03-05 [1] Github (r-lib/generics@c15ac43)
#> ggplot2 * 3.2.1 2019-08-10 [1] CRAN (R 3.6.1)
#> glue 1.3.1 2019-03-12 [1] CRAN (R 3.6.0)
#> gtable 0.3.0 2019-03-25 [1] CRAN (R 3.6.0)
#> gtools 3.8.1 2018-06-26 [1] CRAN (R 3.5.0)
#> haven 2.2.0 2019-11-08 [1] CRAN (R 3.6.1)
#> highr 0.8 2019-03-20 [1] CRAN (R 3.6.0)
#> hms 0.5.2 2019-10-30 [1] CRAN (R 3.6.1)
#> htmltools 0.4.0 2019-10-04 [1] CRAN (R 3.6.1)
#> httr 1.4.1 2019-08-05 [1] CRAN (R 3.6.1)
#> jsonlite 1.6 2018-12-07 [1] CRAN (R 3.6.0)
#> knitr 1.26 2019-11-12 [1] CRAN (R 3.6.1)
#> lattice 0.20-38 2018-11-04 [2] CRAN (R 3.6.1)
#> lazyeval 0.2.2 2019-03-15 [1] CRAN (R 3.6.0)
#> lifecycle 0.1.0 2019-08-01 [1] CRAN (R 3.6.1)
#> lubridate 1.7.4 2018-04-11 [1] CRAN (R 3.5.1)
#> magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.1)
#> MASS * 7.3-51.4 2019-03-31 [1] CRAN (R 3.6.0)
#> Matrix 1.2-18 2019-11-27 [1] CRAN (R 3.6.1)
#> memoise 1.1.0 2017-04-21 [1] CRAN (R 3.6.0)
#> modelr 0.1.5 2019-08-08 [1] CRAN (R 3.6.1)
#> multcomp 1.4-11 2019-12-10 [1] CRAN (R 3.6.1)
#> munsell 0.5.0 2018-06-12 [1] CRAN (R 3.5.1)
#> mvtnorm 1.0-11 2019-06-19 [1] CRAN (R 3.6.0)
#> openxlsx 4.1.4 2019-12-06 [1] CRAN (R 3.6.1)
#> pillar 1.4.2.9001 2019-12-10 [1] Github (r-lib/pillar@82370d7)
#> pkgbuild 1.0.6 2019-10-09 [1] CRAN (R 3.6.1)
#> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 3.6.1)
#> pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.6.0)
#> plotrix 3.7-7 2019-12-05 [1] CRAN (R 3.6.1)
#> prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.1)
#> processx 3.4.1 2019-07-18 [1] CRAN (R 3.6.1)
#> ps 1.3.0 2018-12-21 [1] CRAN (R 3.6.0)
#> purrr * 0.3.3 2019-10-18 [1] CRAN (R 3.6.1)
#> R6 2.4.1 2019-11-12 [1] CRAN (R 3.6.1)
#> Rcpp 1.0.3 2019-11-08 [1] CRAN (R 3.6.1)
#> readr * 1.3.1 2018-12-21 [1] CRAN (R 3.6.0)
#> readxl 1.3.1 2019-03-13 [1] CRAN (R 3.6.0)
#> remotes 2.1.0 2019-06-24 [1] CRAN (R 3.6.0)
#> reprex 0.3.0 2019-05-16 [1] CRAN (R 3.6.0)
#> rio 0.5.16 2018-11-26 [1] CRAN (R 3.6.0)
#> rlang 0.4.2 2019-11-23 [1] CRAN (R 3.6.1)
#> rmarkdown 2.0 2019-12-12 [1] CRAN (R 3.6.1)
#> rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.1)
#> rvest 0.3.5 2019-11-08 [1] CRAN (R 3.6.1)
#> sandwich 2.5-1 2019-04-06 [1] CRAN (R 3.6.0)
#> scales 1.1.0 2019-11-18 [1] CRAN (R 3.6.1)
#> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.6.0)
#> stringi 1.4.3 2019-03-12 [1] CRAN (R 3.6.0)
#> stringr * 1.4.0 2019-02-10 [1] CRAN (R 3.6.0)
#> survival 3.1-8 2019-12-03 [1] CRAN (R 3.6.1)
#> testthat 2.3.1 2019-12-01 [1] CRAN (R 3.6.1)
#> TH.data 1.0-10 2019-01-21 [1] CRAN (R 3.5.2)
#> tibble * 2.1.3 2019-06-06 [1] CRAN (R 3.6.1)
#> tidyr * 1.0.0 2019-09-11 [1] CRAN (R 3.6.1)
#> tidyselect 0.2.5 2018-10-11 [1] CRAN (R 3.5.1)
#> tidyverse * 1.3.0 2019-11-21 [1] CRAN (R 3.6.1)
#> usethis 1.5.1.9000 2019-12-12 [1] Github (r-lib/usethis@23dd62c)
#> vctrs 0.2.0.9007 2019-12-10 [1] Github (r-lib/vctrs@3bca8ae)
#> withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.1)
#> xfun 0.11 2019-11-12 [1] CRAN (R 3.6.1)
#> xml2 1.2.2 2019-08-09 [1] CRAN (R 3.6.1)
#> yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.1)
#> zip 2.0.4 2019-09-01 [1] CRAN (R 3.6.1)
#> zoo 1.8-6 2019-05-28 [1] CRAN (R 3.6.0)
#>
#> [1] C:/Users/inp099/Documents/R/win-library/3.6
#> [2] C:/Program Files/R/R-3.6.1/library |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
tidy.drc
function returns NA's for the confidence interval estimates.Attempting the example from the documentation:
Relevant session info:
The text was updated successfully, but these errors were encountered: