[R-sig-Geo] spreml function
Roger Bivand
Roger@B|v@nd @end|ng |rom nhh@no
Wed Apr 17 15:33:08 CEST 2019
On Thu, 11 Apr 2019, Federico Dell'Anna wrote:
> Dear,
> I have a problem with “spreml” function in R.
> I have a dataset of 26000 observation, like points.
> I have imported the shp file in R, and .gal file calculated previously in GEODA.
> When i run spreml, an error comes:
> Error in as.vector(x) : no method for coercing this S4 class to a vector
> below the function:
> mapsart <- spreml(fm, data = map, w = maplistw, errors="sr", lag=TRUE, method="BFGS”)
Unfortunately, this is not helpful, as we do not know what the objects
passed to spreml() are. What are their classes? Is data= of the form
expected by the function with balanced temporal and spatial indices?
Please provide an example reproducing the problem with a built-in data
set.
Roger
>
>
> Can you help me to solve this problem?
>
> Regards
>
> Federico
>
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; e-mail: Roger.Bivand using nhh.no
https://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
More information about the R-sig-Geo
mailing list