I've used lm()
to fit multiple regression models, for multiple (~1 million) response variables in R. Eg.
allModels <- lm(t(responseVariablesMatrix) ~ modelMatrix)
This returns an object of class "mlm", which is like a huge object containing all the models. I want to get the t-statistic for the first coefficient in each model, which I can do using the summary(allModels)
function, but its very slow on this large data and returns a lot of unwanted info too.
Is there a faster way of calculating the t-statistic
manually, that might be faster than using the summary()
function
Thanks!