Learn R Programming

refund (version 0.1-40)

compute_ff_effect: Compute function-on-function effect

Description

Compute the integral effect: integral of X(s) * beta(s,t) ds using Simpson integration weights consistent with `ff()` defaults.

Usage

compute_ff_effect(X, beta_st, xind)

Value

Numeric matrix (n x length(yind)) of effect contributions.

Arguments

X

Numeric matrix (n x length(xind)) of functional covariate values.

beta_st

Numeric matrix (length(xind) x length(yind)) coefficient surface.

xind

Numeric vector of x evaluation points.