[R] predict.lm How to introduce new data?

2011-03-23 Thread agent dunham
Dear all, I've fitted a lm using 61 data (training data), and I'left 10 as test data. Training data and test data are stored in an excell. training - read.xls(C:/./training.xls) , the same for test. That is: v1 v2 ... v15 When I type str(training) and str(test), both sets have the same

Re: [R] predict.lm How to introduce new data?

2011-03-23 Thread David Winsemius
On Mar 23, 2011, at 10:05 AM, agent dunham wrote: Dear all, I've fitted a lm using 61 data (training data), and I'left 10 as test data. Training data and test data are stored in an excell. training - read.xls(C:/./training.xls) , the same for test. That is: v1 v2 ... v15 When I