fit_hill {GeoTox}R Documentation

Fit 2- or 3-parameter Hill model

Description

Fit 2- or 3-parameter Hill model

Usage

fit_hill(
  x,
  conc = "logc",
  resp = "resp",
  fixed_slope = TRUE,
  chem = NULL,
  assay = NULL
)

Arguments

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.

Details

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.

Value

data frame of fit parameters.

Examples

# 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)

[Package GeoTox version 0.2.0 Index]