Learn R Programming

refund (version 0.1-40)

compute_const_effect: Compute constant-over-t effect

Description

Compute effect: f(x1, x2, ...) that is constant over the response index t. Supports multi-argument functions for terms like `c(te(x1, x2))`.

Usage

compute_const_effect(..., f_x, n_yind)

Value

Numeric matrix (n x n_yind) of effect contributions (constant across columns).

Arguments

...

Numeric vectors of covariate values (all same length n).

f_x

Function or numeric. If function, called with all covariates as separate arguments. If numeric, used directly (length 1 or n).

n_yind

Integer, number of y evaluation points.