hitcontinner: Continuous Hitcalls Inner

View source: R/hitcontinner.R

hitcontinnerR Documentation

Continuous Hitcalls Inner

Description

Calculates continuous hitcall using 3 statistical metrics.

Usage

hitcontinner(
  conc,
  resp,
  top,
  cutoff,
  er,
  ps,
  fit_method,
  caikwt,
  mll,
  errfun = "dt4"
)

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.

errfun

Which error distribution to assume for each point, defaults to "dt4". "dt4" is the original 4 degrees of freedom t-distribution. Another supported distribution is "dnorm", the normal distribution.

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)

tcplfit2 documentation built on Sept. 24, 2024, 1:07 a.m.