hitlogic | R Documentation |
Wrapper that computes discrete hitcalls for a provided concRespCore dataframe.
hitlogic(indf, newbmad = NULL, xs = NULL, ys = NULL, newcutoff = NULL)
indf |
Dataframe similar to concRespCore input Must contain "conc" and "resp" columns if xs and ys are not provided. Must contain "cutoff" and "bmad_factor" columns if newbmad is not NULL. Must contain "top" and "ac50" columns. "conc" and "resp" entries should be a single string with values separated by |. |
newbmad |
(Deprecated) New number of bmads to use for the cutoff. |
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. |
Vector of hitcalls with length equal to number of rows in indf.
conc = rep(".03|.1|.3|1|3|10|30|100",2)
resp = rep("0|0|.1|.1|.5|.5|1|1",2)
indf = data.frame(top = c(1,1), ac50 = c(3,4), conc = conc, resp = resp,
stringsAsFactors = FALSE)
hitlogic(indf, newcutoff = c(.8,1.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.