initialMarginal {BIGL}R Documentation

Estimate initial values for fitting marginal dose-response curves

Description

This is a wrapper function which, when a dose-response dataframe is provided, returns start value estimates for both compounds that could be supplied to fitMarginals function. This function is also used by fitMarginals if no initials values were supplied.

Usage

initialMarginal(data, transforms = NULL, ...)

Arguments

data

Dose-response dataframe. Marginal data will be extracted from it automatically.

transforms

Transformation functions. If non-null, transforms is a list containing 5 elements, namely biological and power transformations along with their inverse functions and compositeArgs which is a list with argument values shared across the 4 functions. See vignette for more information.

...

Further parameters that are currently not used

Details

Note that this function returns e1 and 2 which are log-transformed inflection points for respective compounds.

Value

Named vector with parameter estimates. Parameter names are consistent with parameter names in fitMarginals. h1 and h2 are Hill's slope coefficients for each of the compounds, m1 and m2 are their maximal response levels whereas b is the shared baseline. Lastly, e1 and e2 are log-transformed EC50 values.

Note

Returns starting value for e = log(EC50).

Examples

  data <- subset(directAntivirals, experiment == 1)
  ## Data must contain d1, d2 and effect columns
  transforms <- getTransformations(data)
  initialMarginal(data, transforms)

[Package BIGL version 1.9.2 Index]