title: How do we do linear regression on a dataset and regress it to one vector column by column?
body: <p>i have a vector of 6x1 and a matrix 6X1000. I want to do linear regression on each column using the same vector. I need this algorithm to go through my matrix and extract out each R^2 value from each correlation/regression. Can anyone help with this? Thanks!</p>