Models {tcpl} | R Documentation |
Model objective functions
Description
These functions take in the dose-response data and the model parameters, and
return a likelihood value. They are intended to be optimized using
constrOptim
in the tcplFit
function.
Usage
tcplObjCnst(p, resp)
tcplObjGnls(p, lconc, resp)
tcplObjHill(p, lconc, resp)
tcplObjCnst(p, resp)
tcplObjGnls(p, lconc, resp)
tcplObjHill(p, lconc, resp)
Arguments
p |
Numeric, the parameter values. See details for more information. |
resp |
Numeric, the response values |
lconc |
Numeric, the log10 concentration values |
Details
These functions produce an estimated value based on the model and given parameters for each observation. Those estimated values are then used with the observed values and a scale term to calculate the log-likelihood.
Let be the Student's t-distribution with
degrees of
freedom,
be the observed response at the
observation, and
be the estimated response at the
observation. We calculate
as:
where is the scale term. Then the log-likelihood is:
Where is the number of observations.
Value
The log-likelihood.
Constant Model (cnst)
tcplObjCnst
calculates the likelyhood for a constant model at 0. The
only parameter passed to tcplObjCnst
by p
is the scale term
. The constant model value
for the
observation is given by:
tcplObjCnst
calculates the likelyhood for a constant model at 0. The
only parameter passed to tcplObjCnst
by p
is the scale term
. The constant model value
for the
observation is given by:
Gain-Loss Model (gnls)
tcplObjGnls
calculates the likelyhood for a 5 parameter model as the
product of two Hill models with the same top and both bottoms equal to 0.
The parameters passed to tcplObjGnls
by p
are (in order) top
(), gain log AC50 (
), gain hill coefficient (
),
loss log AC50
, loss hill coefficient
, and the scale
term (
). The gain-loss model value
for the
observation is given by:
where is the log concentration for the
observation.
tcplObjGnls
calculates the likelyhood for a 5 parameter model as the
product of two Hill models with the same top and both bottoms equal to 0.
The parameters passed to tcplObjGnls
by p
are (in order) top
(), gain log AC50 (
), gain hill coefficient (
),
loss log AC50
, loss hill coefficient
, and the scale
term (
). The gain-loss model value
for the
observation is given by:
where is the log concentration for the
observation.
Hill Model (hill)
tcplObjHill
calculates the likelyhood for a 3 parameter Hill model
with the bottom equal to 0. The parameters passed to tcplObjHill
by
p
are (in order) top (), log AC50 (
), hill
coefficient (
), and the scale term (
). The hill model
value
for the
observation is given
by:
where is the log concentration for the
observation.
tcplObjHill
calculates the likelyhood for a 3 parameter Hill model
with the bottom equal to 0. The parameters passed to tcplObjHill
by
p
are (in order) top (), log AC50 (
), hill
coefficient (
), and the scale term (
). The hill model
value
for the
observation is given
by:
where is the log concentration for the
observation.