[R] Using Lagsarlm
Roger Bivand
Roger.Bivand at nhh.no
Fri Dec 10 13:16:31 CET 2010
This has been answered offlist (the poster also wrote directly to me as
package maintainer, but did not post on the R-sig-geo list, as would have
seemed natural). The resolution was to read ?formula, and to use either
errorsarlm() or lagsarlm() in spdep with formula=y ~ 1. Apparently an
insurance analyst in a hurry ...
Roger
Saswati Neogi wrote:
>
>
>
> I'm trying to use the spdep package to calculate this:
>
> y = rho W y + e
>
> I don't want to use explanatory variables, just the lag from the dependent
> variable.
>
> How would I code this?
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
-----
Roger Bivand
Economic Geography Section
Department of Economics
Norwegian School of Economics and Business Administration
Helleveien 30
N-5045 Bergen, Norway
--
View this message in context: http://r.789695.n4.nabble.com/Using-Lagsarlm-tp3080368p3081833.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list