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

leffgh leffgh at 163.com
Mon Nov 12 12:39:08 CET 2007


  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 data frame containing a,b,c,d,e,which is exactly the
same as "f"
How can I achieve this result?


I want to do this because I need to extract the formular and act on another
data set ,whose predict variables are the same as those of "f", but the
response variable is different .
-- 
View this message in context: http://www.nabble.com/how-to-extract-the-original-data-of-a-glm-object-tf4790525.html#a13704122
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list