Learn R Programming

drc (version 1.2-0)

coef.drc: Extract Model Coefficients

Description

Extract parameter estimates.

Usage

## S3 method for class 'drc':
coef(object, ...)

Arguments

object
an object of class 'drc'.
...
additional arguments.

Value

  • A vector of parameter coefficients which are extracted from the model object 'object'.

See Also

A more comprehensive summary is obtained using summary.drc.

Examples

Run this code
model1 <- multdrc(ryegrass)
coef(model1)

model2 <- multdrc(ryegrass, boxcox = TRUE)
summary(model2)  # not a satisfactory fit

## Usinf estimates from 'model1' as start values
model3 <- multdrc(ryegrass, boxcox = TRUE, 
startVal = coef(model1))
summary(model3)  # a satisfactory fit

rm(model1, model2, model3)

Run the code above in your browser using DataLab