[R-sig-Geo] The spml function does not work

Edoardo Baldoni edoardo.baldoni at gmail.com
Sun Jun 26 15:10:50 CEST 2016


Dear R users,

I am trying to benchmark my code for estimating spatial panels with the
functions in the splm package. The problem is that I cannot make the spml
functions (from package splm) work. Not even the ones in the standard
examples provided. Here is one of the examples that can be found in the R
help page (http://127.0.0.1:24033/library/splm/html/spml.html) and then the
error that comes out:

data(Produc, package = "plm")
data(usaww)
fm <- log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
fespaterr <- spml(fm, data = Produc, listw = mat2listw(usaww),
                   model="within", spatial.error="b", Hess = FALSE)

Error in solve(crossprod(xco), crossprod(xco, yco)) :
  error in evaluating the argument 'a' in selecting a method for function
'solve': Error in crossprod(xco) :
  could not find symbol "..." in environment of the generic function


Do you have any idea of what is happening here ? Thanks


Edoardo

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list