hitcontinner {tcplfit2} | R Documentation |
Continuous Hitcalls Inner
Description
Calculates continuous hitcall using 3 statistical metrics.
Usage
hitcontinner(conc, resp, top, cutoff, er, ps, fit_method, caikwt, mll)
Arguments
conc |
Vector of concentrations. |
resp |
Vector of responses. |
top |
Model top. |
cutoff |
Desired cutoff. |
er |
Model error parameter. |
ps |
Vector of used model parameters in order: a, tp, b, ga, p, la, q, er. |
fit_method |
Name of winning fit method (should never be constant). |
caikwt |
Akaike weight of constant model relative to winning model. |
mll |
Maximum log-likelihood of winning model. |
Details
This function is called either directly from concRespCore or via hitcont. Details of how to compute function input are in concRespCore.
Value
Continuous hitcall between 0 and 1.
Examples
conc = c(.03,.1,.3,1,3,10,30,100)
resp = c(0,.1,0,.2,.6,.9,1.1,1)
top = 1.023239
er = -3.295307
ps = c(1.033239, 2.453014, 1.592714, er = -3.295307) #tp,ga,p,er
fit_method = "hill"
caikwt = 1.446966e-08
mll = 12.71495
hitcontinner(conc,resp,top,cutoff = 0.8, er,ps,fit_method, caikwt, mll)
hitcontinner(conc,resp,top,cutoff = 1, er,ps,fit_method, caikwt, mll)
hitcontinner(conc,resp,top,cutoff = 1.2, er,ps,fit_method, caikwt, mll)
[Package tcplfit2 version 0.1.6 Index]