grecip(sna)
grecip()所属R语言包:sna
Compute the Reciprocity of an Input Graph or Graph Stack
计算互惠的输入图形或图形堆栈
译者:生物统计家园网 机器人LoveR
描述----------Description----------
grecip calculates the dyadic reciprocity of the elements of dat selected by g.
grecip计算的元素的二进互惠dat选择g的。
用法----------Usage----------
grecip(dat, g = NULL, measure = c("dyadic", "dyadic.nonnull",
"edgewise", "edgewise.lrr"))
参数----------Arguments----------
参数:dat
one or more input graphs.
一个或多个输入图表。
参数:g
a vector indicating which graphs to evaluate (optional).
一个矢量图形以评估(可选)。
参数:measure
one of "dyadic" (default), "dyadic.nonnull", "edgewise", or "edgewise.lrr".
"dyadic"(默认),"dyadic.nonnull","edgewise"或"edgewise.lrr"之一。
Details
详细信息----------Details----------
The dyadic reciprocity of a graph is the proportion of dyads which are symmetric; this is computed and returned by grecip for the graphs indicated. (dyadic.nonnull returns the ratio of mutuals to non-null dyads.) Note that the dyadic reciprocity is distinct from the edgewise or tie reciprocity, which is the proportion of edges which are reciprocated. This latter form may be obtained by setting measure="edgewise". Setting measure="edgewise.lrr" returns the log of the ratio of the edgewise reciprocity to the density; this is measure (called r_4 by Butts (2008)) can be interpreted as the relative log-odds of an edge given a reciprocation, versus the baseline probability of an edge.
图式互惠的比例是对称的二元关系,这是计算和返回grecip,所示的图形。 (dyadic.nonnull返回非空的二人组合的共同基金的比例)。需要注意的是二进互惠沿边或配合互惠,这是往复运动边的比例是不同的。这后者的形式,可以通过以下方式获得设置measure="edgewise"。设置measure="edgewise.lrr"返回log扁绕互惠的密度的比率,这是measure(叫做r_4者巴茨(2008)),可以被解释为相对log赔率的边缘给定一个往复运动,相对于边缘的基线概率。
值----------Value----------
The graph reciprocity value(s)
图形互惠值(S)
(作者)----------Author(s)----------
Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>
参考文献----------References----------
Butts, C.T. (2008). “Social Networks: A Methodological Introduction.” Asian Journal of Social Psychology, 11(1), 13-41.
参见----------See Also----------
mutuality, symmetrize
mutuality,symmetrize
实例----------Examples----------
#Calculate the dyadic reciprocity scores for some random graphs[二进互惠的分数计算一些随机图]
grecip(rgraph(10,5))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|