[R] How to make array of regression objects

2011-05-18 Thread Dmitrij Kudriavcev
Dear all, I have made couple logistic regressions, what making a distribution of some event. Currently, i store it like this: o1 - lrm(...) o2 - lrm(...) o3 - lrm(...) ... Then, i have made a function to peak required regression object from this variables by it number: get_object -

Re: [R] How to make array of regression objects

2011-05-18 Thread Ista Zahn
Hi Dmitrij, I think the usual way is to store the results in a list: o - list() o[[1]] - lrm(...) o[[2]] - lrm(...) o[[...]] -lrm(...) then you can access the results like 0[[1]], 0[[2]] ... Best, Ista On Tue, May 17, 2011 at 11:53 PM, Dmitrij Kudriavcev dimitrij.kudriav...@ntsg.lt wrote:

Re: [R] How to make array of regression objects

2011-05-18 Thread Dmitrij Kudriavcev
Thank you, Ista, that exactly, what i was looking for :) Regards, Dmitrij Kudriavcev 2011/5/18 Ista Zahn iz...@psych.rochester.edu Hi Dmitrij, I think the usual way is to store the results in a list: o - list() o[[1]] - lrm(...) o[[2]] - lrm(...) o[[...]] -lrm(...) then you can access