Displaying 1 result from an estimated 1 matches for "tp3250535p3250594".
Did you mean:
tp3250535p3250535
2011 Feb 01
1
How can I index multiple linear models? (Without getting a warning.)
My code looks like this:
lin = NA
for(i in 1:15){
lin[i] = lm(reservesub[,3]~ reservesub[,i+3])
}
For which I'm given 15 warning messages which say :
"1: In lin[i] = lm(reservesub[, 3] ~ reservesub[, i + 3]) :
number of items to replace is not a multiple of replacement length"
I'm am able to generate the 15 different models and get the coefficients. I
am able to access