fit_hill | R Documentation |
Fit 2- or 3-parameter Hill model
fit_hill(
x,
conc = "logc",
resp = "resp",
fixed_slope = TRUE,
chem = NULL,
assay = NULL
)
x |
data frame of dose response data. |
conc |
column name of base-10 log scaled concentration. |
resp |
column name of response. |
fixed_slope |
if TRUE, slope is fixed at 1. |
chem |
(optional) column name of chemical identifiers. |
assay |
(optional) column name of assay identifiers. |
Optional chem
and assay
identifiers can be used to fit multiple
chemicals and/or assays. Returned columns tp
is the top asymptote and
logAC50
is the 50% response concentration. If the computation of the
standard deviations of these two parameters fails, then the standard
deviation is set equal to the parameter estimate and is indicated by the
respective imputed flag being TRUE.
data frame of fit parameters.
# Multiple assays, multiple chemicals
df <- geo_tox_data$dose_response
fit_hill(df, assay = "endp", chem = "casn")
# Single assay, multiple chemicals
df <- geo_tox_data$dose_response |>
dplyr::filter(endp == "TOX21_H2AX_HTRF_CHO_Agonist_ratio")
fit_hill(df, chem = "casn")
# Single assay, single chemical
df <- geo_tox_data$dose_response |>
dplyr::filter(endp == "TOX21_H2AX_HTRF_CHO_Agonist_ratio",
casn == "510-15-6")
fit_hill(df)
# 3-parameter Hill model
fit_hill(df, fixed_slope = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.