Re: [R] Automated Regressions

2011-12-12 Thread Frederic Andrieu
526 123 T: +44 (0)1249 766 801  F: +44 (0)1249 767 707 www.mango-solutions.com Unit 2 Greenways Business Park Bellinger Close Chippenham Wilts SN15 1BN UK -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of ryanSt Sent: 12 December

Re: [R] Automated Regressions

2011-12-12 Thread B77S
I don't know why you had "c in a(1:2000))" c is a function see ?c ... and you want "a" (the row number in SQL_Code) to change with each iteration in the loop. Perhaps this might work (I'm not saying this is the best option, just a potential fix for what you have): for (a in 1:2000) { Dataset

[R] Automated Regressions

2011-12-12 Thread ryanSt
Hello R-Experts, I've got a question, concerning the automation of a number of regressions (lm) with the help of a loop (for i in ). The situation is as follows (the code follows after that): I have my data in an access database. I have historical data for 2000 parts, for each of this parts I