% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bayes_factor.R
\name{bf_table}
\alias{bf_table}
\title{Compute Savege-Dickey Bayes factors}
\usage{
bf_table(
  object,
  type = "all",
  lag = 1L,
  null_value = 0,
  variable = NULL,
  log_BF10 = FALSE,
  round = 5L
)
}
\arguments{
\item{object}{A \code{bvarnet} object returned by \code{bvar()}.}

\item{type}{Character vector specifying which parameter groups to test.
Use \code{"all"} (default) to include all applicable groups automatically.
Available options:
\describe{
\item{\code{"ar"}}{Autoregressive effects (self-loops). Per-cell BFs
for the lag specified by \code{lag}, plus a joint BF.}
\item{\code{"cl"}}{Cross-lagged effects. Same structure as \code{"ar"}.}
\item{\code{"intercepts"}}{Intercept parameters. Skipped automatically
for ordinal outcomes.}
\item{\code{"fe"}}{Non-intercept fixed effects (covariates).}
\item{\code{"lag_fe"}}{Joint BFs for lag \eqn{\times} covariate
interaction terms. Only available when the model was fitted with
\code{fe_interactions} containing lag terms.}
\item{\code{"temporal"}}{Joint BF for the entire temporal structure
(all AR + CL parameters across all lags). When lag \eqn{\times}
covariate interactions are present, additional omnibus rows are
included.}
}}

\item{lag}{Integer; which lag block to use (default 1). Applies to
\code{"ar"} and \code{"cl"} types.}

\item{null_value}{Numeric scalar; the null hypothesis value (default 0).}

\item{variable}{Character vector or \code{NULL} (default).  One or more
variable names.  When set, only effects involving these variables are
included.}

\item{log_BF10}{Logical; if \code{TRUE}, an additional \code{log_BF10}
column (natural log of \code{BF10}) is appended to the output.
Default is \code{FALSE}.}

\item{round}{Integer or \code{NULL}; number of decimal places to round
numeric output columns.  Default is \code{5}.  Set to \code{NULL} to
disable rounding.}
}
\value{
A data frame with columns: \code{type}, \code{predictor},
\code{outcome}, \code{BF10} (and optionally \code{log_BF10}).
}
\description{
Computes Savage-Dickey density ratio Bayes factors for each (requested set of) parameter in the model.
By default, all applicable parameters are tested and returned in a tidy data frame.
The \code{type} argument controls which parameter groups are included; the \code{variable} argument can be used to filter to effects involving specific variables.
The \code{log_BF10} argument allows including the natural log of the Bayes factor in the output, and \code{round} controls numeric rounding of the results.
}
