Re: [R] how to extract the original data of a glm object

2007-11-12 Thread vito muggeo
See and *read* the help file ?glm the object returned by glm() includes the `data' component hence: aa<-glm(..) aa$data or also eval(aa$call$data) leffgh ha scritto: > my function is > glm(a~log(b)+c+d+e,family=binomial,data=f)->aa > > > I want to extract the original data set of a

Re: [R] how to extract the original data of a glm object

2007-11-12 Thread Henrique Dallazuanna
Try: aa$data On 12/11/2007, leffgh <[EMAIL PROTECTED]> wrote: > > my function is > glm(a~log(b)+c+d+e,family=binomial,data=f)->aa > > > I want to extract the original data set of aa. How to do it ? > > You may suggest the model.frame() function. In fact ,i have tried it. > model.frame returns

[R] how to extract the original data of a glm object

2007-11-12 Thread leffgh
my function is glm(a~log(b)+c+d+e,family=binomial,data=f)->aa I want to extract the original data set of aa. How to do it ? You may suggest the model.frame() function. In fact ,i have tried it. model.frame returns a data frame of containing a,log(b) NOT b,c,d,e I want to extract a d