% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tune_Lambda.R
\name{.compute_tuning_delta}
\alias{.compute_tuning_delta}
\title{Compute Pseudocount Delta for Link Function Stabilization}
\usage{
.compute_tuning_delta(family, unl_y, N_obs, observation_weights, opt)
}
\arguments{
\item{family}{GLM family object.}

\item{unl_y}{Numeric vector; unlisted response values (concatenated across
partitions).}

\item{N_obs}{Integer; total sample size.}

\item{observation_weights}{List or NULL; observation weights by partition.}

\item{opt}{Logical; whether optimization is being performed.}
}
\value{
Numeric scalar; the pseudocount \eqn{\delta \geq 0}.
}
\description{
Determines the pseudocount \eqn{\delta} used to stabilize link function
transformations during penalty tuning. For identity link or when
the response is naturally in the domain of the link function, returns 0.
Otherwise, finds the \eqn{\delta} that makes the transformed response
distribution most closely approximate a t-distribution.
}
\keyword{internal}
