hitloginner | R Documentation |
Contains hit logic, called directly during CR fitting or later through "hitlogic".
hitloginner(conc = NULL, resp, top, cutoff, ac50 = NULL)
conc |
Vector of concentrations (No longer necessary). |
resp |
Vector of responses. |
top |
Model top. |
cutoff |
Desired cutoff. |
ac50 |
Model AC50 (No longer necessary). |
The purpose of this function is to keep the actual hit rules in one location so it can be called during CR fitting, and then again after the fact for a variety of cutoffs. Curves fit with constant winning should have top = NA, generating a miss.
Outputs 1 for hit, 0 for miss.
hitloginner(resp = 1:8, top = 7, cutoff = 5) #hit
hitloginner(resp = 1:8, top = 7, cutoff = 7.5) #miss: top too low
hitloginner(resp = 1:8, top = 9, cutoff = 8.5) #miss: no response> cutoff
hitloginner(resp = 1:8, top = NA, cutoff = 5) #miss: no top (constant)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.