Learn R Programming

refund (version 0.1-40)

center_smooth_effect: Center effect matrix column-wise for smooth term identifiability

Description

Centers effect matrix so that colMeans(effect) = 0, i.e., for each t, the effect averages to 0 across observations: sum_i f(z_i, t) = 0 for all t. This matches pffr's identifiability constraint for smooth varying coefficient terms.

Usage

center_smooth_effect(effect)

Value

Centered matrix with same dimensions.

Arguments

effect

Numeric matrix (n x n_yind) of effect values.