search for: dumlist

Displaying 1 result from an estimated 1 matches for "dumlist".

Did you mean: domlist
2012 Jan 01
3
rep() inside of lm()?
...gression. The problem is I don't know how to make a non-character or a non-numeric repeat. So I'd want something like: #--------------------------- dumplist<-list() for(a in 1:length(newlist[[1]])){ for(b in 1:length(newlist[[2]]){ for(terminal in 1:length(newlist[[length(newlist)]])){ dumlist[[..]]<-lm(y~newlist[[1]][a] + newlist[[2]]][b] + ....... + newlist[[N]][terminal]). }}} #--------------------------- and I want the above to adjust to whatever N is. I'm new to R so this kind of thing is very difficult. I'm experimenting with eval(), parse(), paste(), expression(), le...