coef.fcm | R Documentation |
Extract estimated model parameters from objects returned by fcm()
.
Optionally computes confidence intervals via either the observed Hessian
(Delta method, on the log scale) or bootstrap sampling.
## S3 method for class 'fcm'
coef(object, ..., method = c("default", "hessian", "boot"), ci = 0.95)
object |
An object of class |
... |
Further arguments passed to or from other methods. |
method |
Character string specifying the method used to compute confidence intervals.
One of |
ci |
Confidence level for the interval estimation (e.g., 0.95). If |
If method = "hessian"
, confidence intervals are constructed on the log scale
using the Delta method, then exponentiated to return to the original parameter scale.
If method = "boot"
, confidence intervals are computed as empirical quantiles of
the bootstrap replicates.
If method = "default"
, returns a named vector of parameter estimates.
If method = "hessian"
or method = "boot"
, returns a data.frame
with columns:
par
: the estimated parameter
lower
: lower bound of the CI
upper
: upper bound of the CI
fcm()
data(fit)
coef(fit)
coef(fit, method = "hessian", ci = 0.95)
coef(fit, method = "boot", ci = 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.