coef.OEFPIL {OEFPIL} | R Documentation |
Extract model coefficients from OEFPIL
Description
Function which extracts the estimated model coefficients from an object of class "OEFPIL"
.
Usage
## S3 method for class 'OEFPIL'
coef(object, ...)
Arguments
object |
an object of class |
... |
other arguments. |
Value
A named vector of estimated model coefficients extracted from an "OEFPIL"
object.
See Also
Examples
##Creating a data file (using steam data from MASS library)
library(MASS)
steamdata <- steam
colnames(steamdata) <- c("x","y")
startsteam <- list(b1 = 5, b2 = 8, b3 = 200)
k <- nrow(steamdata)
CM <- diag(rep(0.1,2*k))
##Creating an OEFPIL object
st1 <- OEFPIL(steamdata, y ~ b1 * 10^(b2 * x/ (b3 + x)), startsteam, CM, useNLS = FALSE)
##Use of coef function
coef(st1)
[Package OEFPIL version 0.1.1 Index]