compute_linear_effect: Compute linear varying coefficient effect
Description
Compute effect: x * beta(t) for scalar covariate with varying coefficient.
Usage
compute_linear_effect(x, beta_t, yind = NULL)
Value
Numeric matrix (n x length(yind)) of effect contributions.
Arguments
- x
Numeric vector (length n) of scalar covariate values.
- beta_t
Numeric vector (length(yind)) of varying coefficient.
- yind
Numeric vector of y evaluation points (unused, for API consistency).