## Estimating CRS model with a lower limit equal to 0 and alpha fixed at 1
lettuce.crs.4a <- drm(weight ~ conc, data = lettuce, fct = CRS.4a())
summary(lettuce.crs.4a)
predict(lettuce.crs.4a, se.fit = TRUE)
predict(lettuce.crs.4a, interval = "confidence")
predict(lettuce.crs.4a, interval = "prediction")
plot(lettuce.crs.4a)
# Example from Sweeney et al. (2026) with U-shaped hormesis data
concVec <- c(0,0,0,1,1,1,2,2,2,4,4,4,10,10,10, 50, 50, 50)
respVec <- c(2.1, 2.0, 1.8, 1.5, 1.2, 1.1, 2.2, 1.8, 2.1,
4.6, 4.8, 5.2, 9.8, 8.8, 10.1, 11.1, 11.3, 10.9)
ex.ucrs.5b <- drm(respVec ~ concVec, fct = UCRS.5b())
summary(ex.ucrs.5b)
# estimated parameter f: 2.62248 (0.88486), p = 0.01098
plot(ex.ucrs.5b, bp = 0.001)
fitted(ex.ucrs.5b)
predict(ex.ucrs.5b, se.fit = TRUE)
predict(ex.ucrs.5b, interval = "confidence")
Run the code above in your browser using DataLab