CoefficientFunction

Estimated coefficient function beta(t) for a functional term.

Usage

Source

CoefficientFunction(
    grid,
    values,
    se=None,
    lower=None,
    upper=None,
    term_name="",
)

Returned by FunctionalGAM.coefficient_function(). Represents the fitted weight that each point t along a functional covariate’s domain contributes to the scalar response, together with pointwise confidence bands derived from the model’s coefficient covariance.

Attributes

grid: NDArray

Evaluation grid on the functional domain, shape (T,).

values: NDArray

Estimated beta(t) values at grid points, shape (T,).

se: NDArray | None

Standard errors of beta(t), shape (T,), or None.

lower: NDArray | None

Lower confidence bound, values - z * se, shape (T,), or None.

upper: NDArray | None

Upper confidence bound, values + z * se, shape (T,), or None.

term_name: str
Name of the functional term this coefficient function belongs to.