coef.OEFPIL | R Documentation |
Function which extracts the estimated model coefficients from an object of class "OEFPIL"
.
## S3 method for class 'OEFPIL'
coef(object, ...)
object |
an object of class |
... |
other arguments. |
A named vector of estimated model coefficients extracted from an "OEFPIL"
object.
OEFPIL
##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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.