dot-compute_tuning_delta: Compute Pseudocount Delta for Link Function Stabilization

.compute_tuning_deltaR Documentation

Compute Pseudocount Delta for Link Function Stabilization

Description

Determines the pseudocount \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 \delta that makes the transformed response distribution most closely approximate a t-distribution.

Usage

.compute_tuning_delta(family, unl_y, N_obs, observation_weights, opt)

Arguments

family

GLM family object.

unl_y

Numeric vector; unlisted response values (concatenated across partitions).

N_obs

Integer; total sample size.

observation_weights

List or NULL; observation weights by partition.

opt

Logical; whether optimization is being performed.

Value

Numeric scalar; the pseudocount \delta \geq 0.


lgspline documentation built on May 8, 2026, 5:07 p.m.