[R] R formula

Berend Hasselman bhh at xs4all.nl
Tue Aug 18 12:43:18 CEST 2009




Anwesha Chakrabarti wrote:
> 
>> fitsur<-systemfit("SUR",list(demand=eqDemand, supply=eqSupply))
> and got the following error messege
> 
> Error in systemfit("SUR", list(demand = eqDemand, supply = eqSupply)) :
> argument 'formula' must be an object of class 'formula' or a list of
> objects
> of class 'formula'
> 
> Can anyone tell me how to overcome this problem?
> 

Read the manual for systemfit.
You have supplied the arguments in the wrong order.
The formula is the first argument and the method is the second.

Berend
-- 
View this message in context: http://www.nabble.com/R-formula-tp25021359p25022361.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list