hitloginner {tcplfit2} | R Documentation |
Hit Logic Inner (Discrete)
Description
Contains hit logic, called directly during CR fitting or later through "hitlogic".
Usage
hitloginner(conc = NULL, resp, top, cutoff, ac50 = NULL)
Arguments
conc |
Vector of concentrations (No longer necessary). |
resp |
Vector of responses. |
top |
Model predicted top, maximal predicted change in response from baseline. |
cutoff |
Desired cutoff. |
ac50 |
Model AC50 (No longer necessary). |
Details
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.
Value
Outputs 1 for hit, 0 for miss.
Examples
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)
[Package tcplfit2 version 0.1.8 Index]