
Compute Parameter Bounds for All Candidate Models
Source:R/constraints.R
compute_model_constraints.RdInspects the response range to classify the assay scale (high/medium/low), then builds adaptive bounds for a, b, c, d (and g for 5-param models).
Usage
compute_model_constraints(
data,
formulas,
response_variable,
independent_variable,
is_log_response,
fixed_a = NULL,
verbose = FALSE
)Arguments
- data
Data frame with response and concentration columns.
- formulas
Named list of formula objects.
- response_variable
Character. Response column name.
- independent_variable
Character. Concentration column name.
- is_log_response
Logical. Is the response log10-transformed?
- fixed_a
Numeric or NULL. If non-NULL,
ais fixed and not bounded. If NULL, adaptive bounds foraare computed.- verbose
Logical.