% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extractors.R
\name{extract_network_matrix}
\alias{extract_network_matrix}
\title{Extract a network matrix of temporal coefficients}
\usage{
extract_network_matrix(
  object,
  lag = 1L,
  stat = c("mean", "median", "q5", "q95")
)
}
\arguments{
\item{object}{A \code{bvarnet} object returned by \code{\link{bvar}}.}

\item{lag}{Integer. Which lag block. Default 1.}

\item{stat}{Character. Summary statistic to fill the matrix with:
\code{"mean"} (default), \code{"median"}, \code{"q5"}, or \code{"q95"}.}
}
\value{
A named \code{p x p} numeric matrix. Element \code{[i, j]}
gives the effect of variable \code{i} (lagged) on variable \code{j}
(outcome). Row and column names are the outcome variable names.
}
\description{
Returns a named \code{p x p} matrix of posterior summary statistics for
the VAR lag coefficients at a chosen lag, suitable for network
visualisation (e.g., with \pkg{igraph} or \pkg{qgraph}).
}
