[R-sig-Geo] convert "errorsarlm" to "lm"

Roger Bivand Roger.Bivand at nhh.no
Fri Oct 20 13:06:05 CEST 2017


On Wed, 18 Oct 2017, niv de malach wrote:

> Hi all,
> I need to convert an "errorsarlm" object into a simple "lm" object because
> the package I use ("piecewiseSEM") could not deal with "errorsarlm". Is
> there a way to transform the object?

Please give a reproducible example [1] showing what you are doing, 
preferably with a built-in data set. In any case, an lm object made from a 
sarlm object will fix the spatial coefficient and loose its uncertainty.

[1] 
https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Can you use an model class accepted in piecewiseSEM that fits an MRF 
random effect?

Roger

>
> Thanks,
> Niv
>>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at 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 at nhh.no
Editor-in-Chief of The R Journal, https://journal.r-project.org/index.html
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en


More information about the R-sig-Geo mailing list