
Select Appropriate Confidence Interval Method for a drc Model
Source:R/ED_robust.R
get_ed_interval.RdThis function determines the recommended confidence interval calculation method ('type' argument in drc::ED) based on the model family of a 'drc' object.
Arguments
- model
A drc model object or a character string specifying the model name (e.g., "LL.4").
- small_n
A logical value. If TRUE, the t-distribution-based Fieller's method ("tfls") is used for small samples for applicable models. If FALSE, the normal-distribution-based method ("fls") is used. Defaults to TRUE.
- fls_pattern
A regular expression character string. This pattern is used to identify model families for which the "fls" or "tfls" method is appropriate. The default covers standard log-logistic, log-normal, Brain-Cousens, and Cedergreen-Ritz-Streibig models.
- verbose
A logical value. If TRUE, a message is printed when the function resorts to its default choice because the model type was not explicitly matched. Defaults to TRUE.
Value
A character string: "tfls", "fls", or "delta", representing the
recommended interval type for use in drc::ED().