Learn R Programming

neuralGAM (version 2.0.1)

.joint_se_eta_mcdropout: Internal helper: joint epistemic SE on link scale

Description

Computes joint epistemic standard errors on the link scale by aggregating across all smooth terms via MC Dropout, capturing cross-term covariance. Parametric model uncertainty (from the linear submodel) is added assuming independence from NN-based epistemic uncertainty.

Computes joint epistemic standard errors on the link scale by aggregating across all smooth terms via MC Dropout, capturing cross-term covariance. Parametric model uncertainty (from the linear submodel) is added assuming independence from NN-based epistemic uncertainty.

Usage

.joint_se_eta_mcdropout(ngam, x, forward_passes = 300, verbose = 0)

.joint_se_eta_mcdropout(ngam, x, forward_passes = 300, verbose = 0)

Value

A numeric vector of length nrow(x) giving epistemic SEs on the link scale.

A numeric vector of length nrow(x) giving epistemic SEs on the link scale.

Arguments

ngam

Fitted neuralGAM object.

x

New data frame of covariates.

forward_passes

Number of MC Dropout passes (default 300).

verbose

Verbosity (0/1).

Author

Ines Ortega-Fernandez, Marta Sestelo

Details

Steps:

  1. Parametric part: mean + variance from linear model.

  2. Nonparametric part: pass-level sums across all smooths.

  3. Joint across-pass variance captures covariance between smooths.

  4. Combined with parametric variance (assumed independent).

Steps:

  1. Parametric part: mean + variance from linear model.

  2. Nonparametric part: pass-level sums across all smooths.

  3. Joint across-pass variance captures covariance between smooths.

  4. Combined with parametric variance (assumed independent).