| coef.snreg | R Documentation |
coef.snreg is the S3 method for extracting the estimated regression
coefficients from an object of class "snreg".
## S3 method for class 'snreg'
coef(object, ...)
object |
an object of class |
... |
additional arguments (currently unused). |
Coefficients from an snreg Model
This method simply returns the coef component stored inside the fitted
"snreg" object. If the object does not contain coefficient estimates
(e.g., if estimation was not completed in a scaffold), an informative error
is raised.
A numeric vector containing the model coefficients.
snsf, snreg, lm.mle, vcov.snreg, residuals.snreg
library(snreg)
data("banks07")
head(banks07)
# Translog cost function specification
spe.tl <- log(TC) ~ (log(Y1) + log(Y2) + log(W1) + log(W2))^2 +
I(0.5 * log(Y1)^2) + I(0.5 * log(Y2)^2) +
I(0.5 * log(W1)^2) + I(0.5 * log(W2)^2)
# Specification 1: homoskedastic noise and skewness
formSV <- NULL # variance equation; constant variance
formSK <- NULL # skewness equation; constant skewness
m1 <- snreg(
formula = spe.tl,
data = banks07,
ln.var.v = formSV,
skew.v = formSK
)
coef(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.