coef.OEFPIL: Extract model coefficients from OEFPIL

Description Usage Arguments Value See Also Examples

View source: R/coef.OEFPIL.R

Description

Function which extracts the estimated model coefficients from an object of class "OEFPIL".

Usage

1
2
## S3 method for class 'OEFPIL'
coef(object, ...)

Arguments

object

an object of class "OEFPIL" (a result of a call to OEFPIL).

...

other arguments.

Value

A named vector of estimated model coefficients extracted from an "OEFPIL" object.

See Also

OEFPIL

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##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)

OEFPIL documentation built on Nov. 4, 2021, 5:07 p.m.