gof-dr4pl {dr4pl}R Documentation

Perform the goodness-of-fit (gof) test for the 4PL model.

Description

Perform the goodness-of-fit (gof) test for the 4PL model when there are at least two replicates for each dose level.

Usage

## S3 method for class 'dr4pl'
gof(object, n.signif.digit = 4, ...)

Arguments

object

An object of the dr4pl class.

n.signif.digit

Number of significant digits after the decimal point to be printed. The default value is 4, but users can change the value on their own.

...

dots for future extensions

Details

Perform a goodness-of-fit (gof) test for the goodness of the 4PL models for dose-response data. There should be at least two replicates at each dose level. The test statistic follows the F distribution with degress of freedom (n - 4) and (N - n) where N stands for the total number of observations and n stands for the number of dose levels. For detailed explanation of the method, please refer to Subsection 2.1.5 of Seber and Wild (1989).

Value

A list of results in the order of a F-statistic value, p-value and a degree of freedom.

References

Seber GAF, Wild CJ (1989). Nonlinear regression, Wiley Series in Probability and Mathematical Statistics: Probability and Mathematical Statistics. John Wiley \& Sons, Inc., New York. ISBN 0-471-61760-1, doi: 10.1002/0471725315, http://dx.doi.org.libproxy.lib.unc.edu/10.1002/0471725315.

Examples

obj.dr4pl <- dr4pl(Response ~ Dose, data = sample_data_4)  # Fit a 4PL model to data
gof(obj.dr4pl)  # Print the goodness-of-fit test results


[Package dr4pl version 2.0.0 Index]