
braincousens(lowerc = c(-Inf, -Inf, -Inf, -Inf, -Inf),
upperc = c(Inf, Inf, Inf, Inf, Inf), fixed = c(NA, NA, NA, NA, NA),
names = c("b", "c", "d", "e", "f"), scaleDose = TRUE)
BC.4
.## Brain-Cousens model with the constraint b>1
model1 <- multdrc(ryegrass, fct=braincousens(fixed=c(NA, NA, NA, NA, NA),
lowerc=c(1, -Inf, -Inf, -Inf, -Inf)), control=mdControl(constr=TRUE))
summary(model1)
## Brain-Cousens model with the constraint f>0
model2 <- multdrc(ryegrass, fct=braincousens(fixed=c(NA, NA, NA, NA, NA),
lowerc=c(-Inf, -Inf, -Inf, -Inf, 0)), control=mdControl(constr=TRUE))
summary(model2)
rm(model1, model2)
Run the code above in your browser using DataLab