hillFit: Fit Hill equation on dose response data

Description Usage Arguments Value Examples

View source: R/drexplorer_hill.R

Description

This function implements S3-style OOP. Methods such as predict, plot and lines are available. Notice that control data (dose = 0) is usually not fitted (supplied) in Hill equation.

Usage

1
hillFit(d, y)

Arguments

d

dose original dose.

y

response relative viability.

Value

it returns a hillFit object consisting a vector of estimations for 'E0', 'Einf', 'EC50', 'HS', 'Emax', 'MSE' (Mean Squared Error), 'Rsq' (R squared), 'RSE' (Residual Standard Error).

Examples

1
2
3
4
sdat <- prepDRdat(drMat = ryegrass[, c(2, 1)], alpha = 0.01, fitCtr = FALSE,
                  standardize = TRUE)$dat
fit_hill <- hillFit(d = sdat$dose, y = sdat$response)
fit_hill[1:length(fit_hill)]

lshen1/drexplorer2 documentation built on June 2, 2020, 9:27 p.m.