View source: R/summary.snreg.R
| summary.snreg | R Documentation |
Produces a summary object for objects of class "snreg".
The function assigns the class "summary.snreg" to the fitted model
object, enabling a dedicated print method (print.summary.snreg) to
display results in a structured format.
## S3 method for class 'snreg'
summary(object, ...)
object |
an object of class |
... |
additional arguments (currently not used). |
Summary Method for snreg Objects
This method expects a fitted "snreg" object.
summary.snreg does not modify the contents of the object; it only
updates the class attribute to "summary.snreg". The corresponding
print method (print.summary.snreg) is responsible for
formatting and displaying estimation details, such as convergence criteria,
log-likelihood, coefficient tables, and (if present) heteroskedastic and
skewness components.
An object of class "summary.snreg", identical to the input object
except for its class attribute.
snreg, print.summary.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
)
summary(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.