compute_smooth_effect: Compute smooth varying coefficient effect
Description
Compute effect: f(x, t) for smooth term varying over response index.
Usage
compute_smooth_effect(x, f_xt, yind)
Value
Numeric matrix (n x length(yind)) of effect contributions.
Arguments
- x
Numeric vector (length n) of covariate values.
- f_xt
Function or matrix. If function, takes (x, t) and returns matrix.
If matrix, should be (n x length(yind)).
- yind
Numeric vector of y evaluation points.