nblag(spdep)
nblag()所属R语言包:spdep
Higher order neighbours lists
高阶邻居列表
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function creates higher order neighbour lists, where higher order neighbours are only lags links from each other on the graph described by the input neighbours list. It will refuse to lag neighbours lists with the attribute self.included set to TRUE. nblag_cumul cumulates neighbour lists to a single neighbour list (“nb” object).
该函数创建高阶邻居列表,其中高阶的邻居都lags相互链接的图形输入的邻居列表中所描述的。它会拒绝落后于邻居列表的的属性self.included设置为TRUE。 nblag_cumul堆邻居列表到一个单一的的邻居列表(“NB”对象)。
用法----------Usage----------
nblag(neighbours, maxlag)
nblag_cumul(nblags)
参数----------Arguments----------
参数:neighbours
input neighbours list of class nb
输入的邻居列表类nb
参数:maxlag
the maximum lag to be constructed
以被构造的最大滞后
参数:nblags
a list of neighbour lists as output by nblag
邻居列表的列表输出nblag
值----------Value----------
returns a list of lagged neighbours lists each with class nb
返回一个列表,每个类nb滞后的邻居列表
(作者)----------Author(s)----------
Roger Bivand <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a> and Giovanni Millo
参见----------See Also----------
summary.nb
summary.nb
实例----------Examples----------
example(columbus)
coords <- coordinates(columbus)
summary(col.gal.nb, coords)
plot(columbus, border="grey")
plot(col.gal.nb, coords, add=TRUE)
title(main="GAL order 1 (black) and 2 (red) links")
col.lags <- nblag(col.gal.nb, 2)
lapply(col.lags, print)
summary(col.lags[[2]], coords)
plot(col.lags[[2]], coords, add=TRUE, col="red", lty=2)
cuml <- nblag_cumul(col.lags)
cuml
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|