Skip to contents

Returns posterior equal-tailed quantile-based credible intervals (not highest-posterior-density, HPD). Built directly from quantile(object$BETA, c(alpha/2, 1-alpha/2)) and quantile(object$VC, ...). These are Bayesian credible intervals, not frequentist confidence intervals.

Usage

# S3 method for class 'ame'
confint(object, parm = NULL, level = 0.95, ...)

# S3 method for class 'lame'
confint(object, parm = NULL, level = 0.95, ...)

Arguments

object

fitted AME / LAME model.

parm

character vector of parameter names, or numeric indices. When parm is character, both BETA names (e.g. "intercept", "x1_dyad"; on a fit with coefficient paths a name selects that coefficient in every period, "x1_dyad[t2]" one period) and variance-component names ("va", "vb", "cab", "rho", "ve") are accepted; on a unipartite binary panel carrying fewer than one event per actor-period the "va", "vb" and "cab" intervals are NA, because the panel carries too few events per actor-period to estimate those variances (the draws stay in object$VC), unless the effects prior was supplied, when they are the intervals under that prior. NULL (default) returns intervals for the regression coefficients only, the parameters coef() reports; name variance components in parm to include them. In a dynamic_beta fit with AR(1) coefficient paths, "mu_beta" selects the long-run mean of every such path and "mu_beta[x1_dyad]" that of one coefficient. Numeric indices select coefficient rows.

level

credible level (default 0.95).

...

additional arguments (ignored).

Value

Matrix with one row per parameter and two columns (e.g. "2.5%", "97.5%").

Note on interval type

These are equal-tailed quantile intervals, not HPD. For an HPD interval use e.g. coda::HPDinterval on the columns of object$BETA and object$VC directly.