I know the lm() function, but I'd like to make my 'own' regression analysis by using matrix algebra. Thats why I wrote the function, but I dont know what values to pick to make it suitable for every dataset.
If I pick a statistical model like lm(y~x) as input, the function would not know what objects it had to use for the matrix algebra. -- View this message in context: http://r.789695.n4.nabble.com/Function-input-for-regression-analysis-tp3955611p3956240.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.