fun_lines: weighted sum/difference of two regression vectors
Description
fun_lines applies function fun to regression vectors while reordering the coefficients,
such that the j-th coefficient in beta[j, ] is permuted with the i-th coefficient.
Usage
fun_lines(i, j, beta, fun = `-`, ni = 1, nj = 1)
Value
numeric vector
Arguments
i
integer scalar. Index of the first vector.
j
integer scalar. Index of the second vector.
beta
p by p numeric matrix. In rows, regression vectors coefficients after node-wise regression. diag(beta) = 0.