Skip to content

How to use lm() output for systemfit() 'Seemingly unrelated regression'

3 messages · Arne Henningsen, zbynek.janoska@gmail.com

#
I am having problem using output of lm() function for further analysing using
systemfit package.

Basicaly, the problem s following - I generate several formulas using lm()
and than I want to estimate a general model using package systemfit.
and I get following error:

Error in systemfit("SUR", list(as.formula(fo), as.formula(foo))) : 
  argument 'formula' must be an object of class 'formula' or a list of
objects of class 'formula'

and I am not able to find where the problem is.
The problem remains even when I try:
instead of using lm()
Could someone give me a hand? I am quite new to R, so possibly the solutions
is simple:)
Thanks
Zbynek Janoska
#
On 3 September 2010 12:03, zbynek.janoska at gmail.com
<zbynek.janoska at centrum.cz> wrote:
Yes, the formula(s) must be the *first* argument of the systemfit()
command, e.g.:

R> fitsur <- systemfit( list(as.formula(fo),as.formula(foo)), method = "SUR" )

/Arne
2 days later