[R-sig-Geo] Help in simultaneous equations

Sarah Goslee sarah.goslee at gmail.com
Mon Jun 18 21:18:59 CEST 2012


On Mon, Jun 18, 2012 at 3:15 PM, Saima Bashir <saimabashir11 at yahoo.com> wrote:
> HI,
>  I want to run simultaneous equation model. I installed packages sphet, spdep, and spse.

After you installed them did you load them into R with
library("sphet")
library("spdep")
library("spse")

> I imported weight matrix from matlab. when I tried to run the model with these codes:
> se <- spsegm(formula, data = pdata, w = W.txt, panel = TRUE, lags = list (c(TRUE, FALSE, FALSE, FALSE), c(FALSE, TRUE, FALSE, FALSE), c(FALSE, FALSE, TRUE, FALSE), c(FALSE, FALSE, FALSE, TRUE)), errors = list(FALSE, TRUE, TRUE, TRUE), endogenous = list(c(FALSE, TRUE, TRUE, TRUE), c(TRUE, FALSE, TRUE, TRUE), c(TRUE, TRUE, FALSE, TRUE), c(TRUE, TRUE, TRUE, FALSE)))
>
> I get this error:
>
> Error: could not find function "spsegm"

If the packages installed correctly and loaded with library(), and you
still get this error, please provide the information requested in the
posting guide on OS, versions, data, etc.

Sarah


> Note: I have four equations and I am using cross section data.
>
> I will really appreciate if someone can help me out.
>
> Thanks
>
> Saima
>


-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-sig-Geo mailing list