[R-sig-Geo] How to extract just the Moran's I values using moran.test{spdep}?

Roger Bivand Roger.Bivand at nhh.no
Fri Jan 30 09:26:51 CET 2009


On Fri, 30 Jan 2009, Xingli Giam wrote:

> Hello List,
>
> I hope to extract the Moran's I values using moran.test{spdep} to manually plot
> a correlogram. However calling the value $estimate produces not just the
> Moran's I, but also its expectation and variance under method assumption. Is
> there a way I can extract just the Moran's I so that I can place it in a
> dataframe against the binned distance classes to plot a correlogram?

Maybe res$estimate[1]? See also str(res) to display the "str"ucture of 
objects.

Roger

>
> Many thanks!
> Xingli
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list