[R-sig-Geo] collecting significance values in sp.correlogram

Roger Bivand Roger.Bivand at nhh.no
Tue Aug 28 19:52:43 CEST 2007


On Tue, 28 Aug 2007, Terry Griffin wrote:

> Greetings,
>
> I'm running a simulation and want to collect the p-values from the 
> sp.correlogram in spdep (version 0.4-4).  I've used the $res to collect 
> the estimate and variance, but would like to collect the p-values "on 
> the fly" in an intermediate step.  Any suggestions?
>

No p-values are present in ths "spcor" object, nor are any exposed inside 
sp.correogram. You can get the framework from code in print.spcor, or use:

zz <- capture.output(pvs <- print(Ispc, "bonferroni")[,5])

using Ispc in example(sp.correlogram), that is have print.spcor() do the 
work for you - more columns if you need them. Remember to consider 
adjusting the p-values for multiple comparisons.

Hope this helps,

Roger

> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> 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