Skip to content

Commit 2993a29

Browse files
committed
Fixed error in bmdProfileGrid()
Fixed object assertion in bmd() Changed "name" and "alias" in bmdHetVar, drmHetVar and bootDataGenOrdinal manuals
1 parent 3118969 commit 2993a29

7 files changed

Lines changed: 22 additions & 8 deletions

File tree

.Rbuildignore

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

DESCRIPTION

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ 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, gridExtra
10+
Suggests:
11+
CVXR,
12+
multcomp,
13+
gridExtra,
14+
testthat (>= 3.0.0)
1115
License: GPL
1216
Encoding: UTF-8
1317
LazyData: true
18+
Config/testthat/edition: 3

R/bmd.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ bmd<-function(object, bmr, backgType = c("modelBased", "absolute", "hybridSD", "
55
respTrans = c("none", "log", "sqrt"),
66
interval = c("delta", "sandwich", "inv", "profile", "profileGrid"), sandwich.vcov=FALSE, display = TRUE, level=0.95, profileGridSize = NA, profileProgressInfo = TRUE)
77
{
8+
if (missing(object)){
9+
stop(paste("object is missing", sep=""))
10+
} else {
11+
if(!inherits(object, "drc")){ stop('object must be of type "drc"')}
12+
}
813
if (missing(def)) {
914
stop(paste("def is missing", sep=""))
1015
}

R/bmdProfileCIgrid.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ bmdProfileCIgrid <- function(object, bmr, backgType = c("modelBased", "absolute"
9191
names(object0$coefficients) <- coefNames
9292
object0$curve[[1]] <- object$pfFct(parmMat = matrix(par, nrow = 1))
9393
object0$parmMat <- matrix(par, nrow = length(par))
94+
colnames(object0$parmMat) <- 1
9495

9596
bmd(object0, bmr = bmr, backgType = backgType, backg = backg, controlSD = controlSD, def = def, interval = "delta", display = FALSE)
9697
}

man/bmdHetVar.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
\name{bmd}
2-
\alias{bmd}
1+
\name{bmdHetVar}
2+
\alias{bmdHetVar}
33
\title{
44
Benchmark dose estimation with heterogeneous variance
55
}

man/bootDataGenOrdinal.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
\name{bootDataGen}
2-
\alias{bootDataGen}
1+
\name{bootDataGenOrdinal}
2+
\alias{bootDataGenOrdinal}
33
\title{
44
Help funtion to bmdOrdinal and bmdOrdinalMA
55
}

man/drmHetVar.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
\name{bmd}
2-
\alias{bmd}
1+
\name{drmHetVar}
2+
\alias{drmHetVar}
33
\title{
44
Dose response modeling with heterogeneous variance
55
}

0 commit comments

Comments
 (0)