coef.greybox: Coefficients of the model and their statistics
Description
These are the basic methods for the alm and greybox models that extract coefficients,
their covariance matrix, confidence intervals or generating the summary of the model.
If the non-likelihood related loss was used in the process, then it is recommended to
use bootstrap (which is slow, but more reliable).
Usage
# S3 method for greybox
coef(object, bootstrap = FALSE, ...)
The confidence level for the construction of the interval.
Value
Depending on the used method, different values are returned.
Details
The coef() method returns the vector of parameters of the model. If
bootstrap=TRUE, then the coefficients are calculated as the mean values of the
bootstrapped ones.
The vcov() method returns the covariance matrix of parameters. If
bootstrap=TRUE, then the bootstrap is done using coefbootstrap
function
The confint() constructs the confidence intervals for parameters. Once again,
this can be done using bootstrap=TRUE.
Finally, the summary() returns the table with parameters, their standard errors,
confidence intervals and general information about the model.
# NOT RUN {# An example with ALMourModel <- alm(mpg~., mtcars, distribution="dlnorm")
coef(ourModel)
vcov(ourModel)
confint(ourModel)
summary(ourModel)
# }