R-alpha: model.frame and data=

Thomas Lumley (thomas@biostat.washington.edu)
Fri, 13 Sep 1996 11:39:30 -0700 (PDT)


Date: Fri, 13 Sep 1996 11:39:30 -0700 (PDT)
From: Thomas Lumley <thomas@biostat.washington.edu>
To: r-testers <r-testers@stat.math.ethz.ch>
Subject: R-alpha: model.frame and data=
In-Reply-To: <Pine.SUN.3.91.960913102533.354B-100000@babcomm>


When a model is fitted with the data= option, model.frame does not 
reconstruct the data frame
eg  
	fit<-lm(y~a+x,data=temp)
	model.frame(fit) 
fails in R (but succeeds in S)
	model.frame(fit,temp) 
works in either.  

Presumably model.frame needs to be modified so that it extracts the 
"data" component from the call.

thomas lumley
U Washington
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-