hitcont: Continuous Hitcalls

View source: R/hitcont.R

hitcontR Documentation

Continuous Hitcalls

Description

Wrapper that computes continuous hitcalls for a provided concRespCore input row.

Usage

hitcont(indf, xs = NULL, ys = NULL, newcutoff)

Arguments

indf

Dataframe similar to concRespCore output. Must contain "conc" and "resp" columns if xs and ys are not provided. Must contain "top", "ac50", "er", "fit_method", "caikwt", and "mll" columns as well as columns for each model parameter.

xs

List of concentration vectors that can be provided for speed.

ys

List of response vectors that can be provided for speed.

newcutoff

Vector of new cutoff values to use. Length should be equal to rows in indf.

Details

indf parameter columns should be NA when not required by fit method. "conc" and "resp" entries should be a single string with values separated by |. Details on indf columns can be found in concRespCore.

Value

Vector of hitcalls between 0 and 1 with length equal to indf row number.

Examples

conc <- list(.03, .1, .3, 1, 3, 10, 30, 100)
resp <- list(0, .2, .1, .4, .7, .9, .6, 1.2)
row <- list(
  conc = conc,
  resp = resp,
  bmed = 0,
  cutoff = 1,
  onesd = .5,
  name = "some chemical",
  assay = "some assay"
)
res <- concRespCore(row, conthits = TRUE)
hitcont(res, newcutoff = 0.2)


tcplfit2 documentation built on Oct. 11, 2023, 1:07 a.m.