powered by
mlm(formula, data, vars, save.residuals=FALSE)
formula
as.data.frame
lm
coefs <- matrix(runif(6*10), 6, 10) X <- matrix(rnorm(100*5), 100, 5) Y <- cbind(1, X) models <- mlm(Y ~ X) str(models)
Run the code above in your browser using DataLab