Multivariate lin reg generator