Per-position smash regression of a multi-position response
Source:R/post_smooth_smash.R
univariate_smash_regression.RdFor a single regressor X (length n) and a multi-position
response Y (n x T), compute the per-position OLS estimate
of Y on X and pass it to smashr::smash.gaus for
empirical-Bayes wavelet shrinkage. Returns the smoothed
position-space effect estimate and a (1 - alpha) credible
band derived from the smash posterior variance.
Value
A list with components effect_estimate (length T
numeric) and cred_band (2 x T matrix with rows
c("up", "low")).
Details
Used internally by mf_post_smooth(method = "smash"); also
useful as a standalone post-processing utility on a single
variable and a single functional outcome.
