Uses majorization-minimization technique to approximate trend filtering fit.
tf(y, x = NULL, k = 2, l, D = NULL, eps = 1e-08, tau = 1e-05,
max_iter = 500)observed data
inputs corresponding to observations
order of fit
vector of penalty parameters lambda
matrix Delta of order k+1
error adjustment to majorization function
convergence threshold
maximum number of iterations allowed