[R] formula and lm

From: <solares_at_unsl.edu.ar>
Date: Fri 16 Jul 2004 - 02:46:29 EST


Hi, don' t understand why the function fomula have this error, i enclose the parameter "a" with the function I()
Thank Ruben
 x<-1:5
y<-c( 2 ,4 , 6 , 8 ,11)
formu<-y~I(a*x)
form<-formula(formu)
dummy<-data.frame(x=x,y=y)
fm<-lm(form,data=dummy)
Error in unique(c("AsIs", oldClass(x))) : Object "a" not found



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 16 03:08:00 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:36:35 EST