diff options
Diffstat (limited to 'man/drfit.Rd')
| -rw-r--r-- | man/drfit.Rd | 111 | 
1 files changed, 77 insertions, 34 deletions
| diff --git a/man/drfit.Rd b/man/drfit.Rd index fe84a91..3729550 100644 --- a/man/drfit.Rd +++ b/man/drfit.Rd @@ -40,7 +40,9 @@    \item{weibull}{      A boolean defining if the cumulative density curves of weibull distributions      (\code{\link{pweibull}} with additionall location parameter and scale=1) -    are fitted to the decadic logarithm of the dose. Default is FALSE.} +    are fitted to the decadic logarithm of the dose. Default is FALSE. +    Note that the weibull distribution is fitted here to the log transformed doses +    which appears to be an uncommon approach.}    \item{linlogit}{      A boolean defining if the linear-logistic function      \code{\link{linlogitf}} as defined by van Ewijk and Hoekstra 1993 is @@ -83,41 +85,79 @@    }  }  \value{ -  \item{results}{ -    A data frame containing at least one line for each substance. If the data -    did not show a mean response < 0.5 at the highest dose level, the -    modeltype is set to \dQuote{inactive}. If the mean response at the lowest -    dose is smaller than 0.5, the modeltype is set to \dQuote{active}. In -    both cases, no fitting procedure is carried out.  Every successful fit is -    reported in one line. Parameters of the fitted curves are only reported -    if the fitted ED50 is not higher than the highest dose.  +  A dataframe with the attribute \code{models} holding a list of the fitted +  dose-response models of class \code{\link{nls}}. The dataframe has at least +  one line for each substance.  -    \code{ndl} is the number of dose levels in the raw data, \code{n} is the -    total number of data points in the raw data used for the fit -    \code{lld} is the decadic logarithm of the lowest dose and -    \code{lhd} is the decadic logarithm of the highest dose.  For the -    \dQuote{linlogit}, \dQuote{logit} and \dQuote{probit} models, the -    parameter \code{a} that is reported coincides with the logED50, i.e the -    logED50 is one of the model parameters that is being fitted. Therefore, -    a confidence interval for the confidence level \code{level} is calculated -    using the \code{\link[MASS:confint]{confint.nls}} function and listed. -    In the case of the \dQuote{weibull} model, \code{a} is a -    location parameter.  Parameter \code{b} in the case of the -    \dQuote{linlogit} fit is the variable b from the \code{\link{linlogitf}} -    function. In the case of \dQuote{probit} fit it is the standard deviation -    of the fitted normal distribution, in the case of the \dQuote{logit} fit -    it is the \code{scale} parameter in the \code{\link{plogis}} function, -    and in the \dQuote{weibull} fit it is the \code{shape} parameter of the -    fitted \code{\link{pweibull}} function. Only the \dQuote{linlogit} fit -    produces a third parameter \code{c} which is the variable f from the -    \code{\link{linlogitf}} function. -  -    If the parameter \code{showED50} was set to TRUE, the ED50 values and their -    confidence intervals are also included on the original dose scale. - -    If one or more response leves were specified in the argument \code{EDx}, -    the corresponding dose levels are given in addition. +  For the \dQuote{linlogit}, \dQuote{logit} and \dQuote{probit} models, the +  parameter \code{a} that is reported coincides with the logED50, i.e the +  logED50 is one of the model parameters that is being fitted. Therefore, +  a confidence interval for the confidence level \code{level} is calculated +  using the \code{\link[MASS:confint]{confint.nls}} function and listed. +   +  The following variables are in the dataframe: +  \item{Substance}{ +    The name of the substance +  } +  \item{ndl}{ +    The number of dose levels in the raw data +  } +  \item{n}{ +    The total number of data points in the raw data used for the fit +  } +  \item{lld}{ +    The decadic logarithm of the lowest dose +  } +  \item{lhd}{ +    The total number of data points in the raw data used for the fit +  } +  \item{mtype}{ +    If the data did not show a mean response < 0.5 at the highest dose level, +    the modeltype is set to \dQuote{inactive}. If the mean response at the +    lowest dose is smaller than 0.5, the modeltype is set to \dQuote{active}. +    In both cases, no fitting procedure is carried out. If the fitted ED50  +    is higher than the highest dose, \dQuote{no fit} is given here. +  } +  \item{logED50}{ +    The decadic logarithm of the ED50 +  } +  \item{low \%}{ +    The lower bound of the confidence interval of log ED50.  +    The name of the column depends on the requested confidence \code{level}.    } +  \item{high \%}{ +    The higher bound of the confidence interval of log ED50. +    The name of the column depends on the requested confidence \code{level}. +  } +  \item{unit}{ +    The unit used for the dose levels in the dose-response data +  } +  \item{sigma}{ +    The square root of the estimated variance of the random error as returned +    by \code{\link{summary.nls}}. +  } +  \item{a}{ +    For the \dQuote{linlogit}, \dQuote{logit} and \dQuote{probit} models, the +    parameter \code{a} coincides with the logED50.  In the case of the +    \dQuote{weibull} model, \code{a} is a location parameter.  +  } +  \item{b}{ +    Parameter \code{b} in the case of the \dQuote{linlogit} fit is the variable +    b from the \code{\link{linlogitf}} function. In the case of \dQuote{probit} +    fit it is the standard deviation of the fitted normal distribution, in the +    case of the \dQuote{logit} fit it is the \code{scale} parameter in the +    \code{\link{plogis}} function, and in the \dQuote{weibull} fit it is the +    \code{shape} parameter of the fitted \code{\link{pweibull}} function. +  } +  \item{c}{ +    Only the \dQuote{linlogit} fit produces a third parameter \code{c} which is +    the variable f from the \code{\link{linlogitf}} function. +  } +  If the parameter \code{showED50} was set to TRUE, the ED50 values and their +  confidence intervals are also included on the original dose scale. + +  If one or more response leves were specified in the argument \code{EDx}, +  the corresponding dose levels are given in addition.  }  \examples{  data(antifoul) @@ -130,6 +170,9 @@ format(r, digits = 2)    Further examples are given in help pages to the datasets    \code{\link{antifoul}}, \code{\link{IM1xIPC81}} and    \code{\link{IM1xVibrio}}. +  Since version 0.6.1 of this package, there is a drop-in replacement function +  \code{\link{drcfit}} which internally uses the drc package and also gives +  confidence intervals for EDx values via this package.  }  \author{    Johannes Ranke  | 
