View source: R/confint.distfreereg.R
confint.distfreereg | R Documentation |
distfreereg
Object
This is a confint
method for objects of class distfreereg
. It calculates confidence intervals for the estimated parameters of a model in a distfreereg
object.
## S3 method for class 'distfreereg'
confint(object, parm, level = 0.95, ..., digits = 3)
object |
Object of class |
parm |
Numeric or character vector; specifies which parameters are to be given confidence intervals. If missing, all parameters are considered. |
level |
Numeric vector of length one; specifies the confidence level. |
... |
Additional parameters passed to other methods. Currently ignored. |
digits |
Numeric vector of length one; used to format percentage labels. Silently converted to an integer. |
This is a slight reworking of confint.default
. The primary difference is that when object$test_mean
is a function, the return value from vcov.distfreereg
is included in the output, since its calculation can be computationally expensive and this prevents users from needing to call vcov
separately for its output.
If object$test_mean
is not a function, then the output is a named numeric matrix each row of which gives the endpoints of the requested confidence interval of its corresponding parameter. If object$test_mean
is a function, then the output is a named list with the previously defined matrix as its first element and the output of vcov(object)
as its second.
If object
was created by calling distfreereg.default
directly, there is no estimated parameter vector, and therefore confint.distfreereg
does not apply.
Jesse Miller
distfreereg
, vcov.distfreereg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.