Skip to content

Commit 87c6743

Browse files
Merge pull request #30 from JensBaalkilde/master
V2.7.1
2 parents 58af8cd + ed28db0 commit 87c6743

64 files changed

Lines changed: 7139 additions & 1483 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

0 Bytes
Binary file not shown.

.Rbuildignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
^.*\.Rproj$
22
^\.Rproj\.user$
3+
cache/
4+
README.Rmd
5+
README.md
6+
README_files/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
cache/

DESCRIPTION

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
Package: bmd
22
Type: Package
33
Title: Benchmark dose estimation for dose-response data
4-
Version: 2.6.5
5-
Date: 2024-12-11
4+
Version: 2.7.1
5+
Date: 2025-03-24
66
Author: Signe M.Jensen, Christian Ritz and Jens Riis Baalkilde
77
Maintainer: Signe M. Jensen <smj@plen.ku.dk>
88
Description: Benchmark dose analysis for continuous, quantal, count and ordinal dose-response data
99
Imports: drc, ggplot2, dplyr
10-
Suggests: CVXR, multcomp
10+
Suggests:
11+
sandwich,
12+
CVXR,
13+
multcomp,
14+
gridExtra,
15+
isotone,
16+
reshape2,
17+
dplyr,
18+
car,
19+
Matrix,
20+
RLRsim,
21+
scales,
22+
testthat (>= 3.0.0)
1123
License: GPL
1224
Encoding: UTF-8
13-
LazyData: true
25+
LazyData: true
26+
Config/testthat/edition: 3

NAMESPACE

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import(drc, ggplot2, dplyr)
22
export(bmd, bmdBoot, bmdIso, bmdIsoBoot, PAV, bmdMA, bootDataGen, bmdMACurve, BCa, invBmd, expandBinomial,
3-
getStackingWeights, drmOrdinal, bmdOrdinal, bmdOrdinalMA, expandOrdinal, bootDataGenOrdinal,
4-
qplotDrc, qplotBmd, MACurve)
3+
getStackingWeights, drmOrdinal, bmdOrdinal, bmdOrdinalMA,
4+
expandOrdinal, bootDataGenOrdinal,
5+
qplotDrc, qplotBmd, MACurve, monotonicityTest, trendTest, bmdHetVar, drmHetVar)
56

67
## S3 methods
78
S3method(logLik, drcOrdinal)
89
S3method(AIC, drcOrdinal)
10+
S3method(BIC, drcOrdinal)
911
S3method(plot, drcOrdinal)
1012
S3method(print, drcOrdinal)
1113
S3method(print, bmdOrdinal)
12-
S3method(plot, bmd)
14+
S3method(plot, bmd)
15+
S3method(plot, drcHetVar)

R/BIC.drcOrdinal.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
BIC.drcOrdinal <- function(object, epsilon = 10^(-16)){
2+
n.parameters <- sum(sapply(object$drmList, function(mod) length(mod$coefficients)))
3+
n.obs <- sum(object$data[[object$weights]])
4+
n.parameters * log(n.obs) - 2 * logLik(object, epsilon)
5+
}

0 commit comments

Comments
 (0)