SSR_gprior: Compute the sum-squared-residuals term under Zellner's...

View source: R/source_varsel.R

SSR_gpriorR Documentation

Compute the sum-squared-residuals term under Zellner's g-prior

Description

These sum-squared-residuals (SSR) arise in the variance (or precision) term under 1) Zellner's g-prior on the coefficients and a Gamma prior on the error precision and 2) marginalization over the coefficients.

Usage

SSR_gprior(y, X = NULL, psi)

Arguments

y

vector of response variables

X

matrix of covariates; if NULL, return sum(y^2)

psi

prior variance (g-prior)

Value

a positive scalar


SeBR documentation built on June 17, 2025, 1:07 a.m.