找回密码
 注册
查看: 315|回复: 0

R语言 sna包 triad.classify()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:04:11 | 显示全部楼层 |阅读模式
triad.classify(sna)
triad.classify()所属R语言包:sna

                                         Compute the Davis and Leinhardt Classification of a Given Triad
                                         计算一个给定的黑社会的的戴维斯和Leinhardt分类

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

triad.classify returns the Davis and Leinhardt classification of the triad indicated by tri in the gth graph of stack dat.
triad.classify返回,戴维斯和Leinhardt分类的黑社会trig日图的堆栈dat。


用法----------Usage----------


triad.classify(dat, g=1, tri=c(1, 2, 3), mode=c("digraph",
    "graph"))



参数----------Arguments----------

参数:dat
a graph or graph stack.
图形或图形堆栈。


参数:g
the index of the graph to be analyzed.
要分析的曲线图的索引。


参数:tri
a triple containing the indices of the triad to be classified.
一个三元组包含的指标的黑社会进行分类,。


参数:mode
string indicating the directedness of edges; "digraph" implies a directed structure, whereas "graph" implies an undirected structure.
字符串,表示directedness的边缘,“"digraph"意味着一个定向的结构,而"graph"意味着一个无向结构。


Details

详细信息----------Details----------

Every unoriented directed triad may occupy one of 16 distinct states.  These states were used by Davis and Leinhardt as a basis for classifying triads within a larger structure; the distribution of triads within a graph (see triad.census), for instance, is linked to a range of substantive hypotheses (e.g., concerning structural balance).  The Davis and Leinhardt classification scheme describes each triad by a string of four elements: the number of mutual (complete) dyads within the triad; the number of asymmetric dyads within the triad; the number of null (empty) dyads within the triad; and a configuration code for the triads which are not uniquely distinguished by the first three distinctions.  The complete list of classes is as follows.
每一个无定向的定向黑社会可能会占据16个不同的国家之一。这些国家所使用的戴维斯和Leinhardt,在一个大结构的基础分类黑社会,黑社会内的分布图(见triad.census),例如,连接到一个实质性的假设(例如,有关结构平衡)。戴维斯和Leinhardt分类方案描述由一个字符串,每个黑社会的四个要素:相互(完整)二人组合在黑社会的,非对称的二元关系内的黑社会null(空)的二人组合在黑社会的数量;配置代码的前三个区别黑社会,这是不是唯一的区别。类的完整列表如下。

  


003 a<-!->b<-!->c, a<-!->c
003a<-!->b<-!->c, a<-!->c

012 a-->b<-!->c, a<-!->c
012a-->b<-!->c, a<-!->c

102 a<-->b<-!->c, a<-!->c
102a<-->b<-!->c, a<-!->c

021D a<--b-->c, a<-!->c
021Da<--b-->c, a<-!->c

021U a-->b<--c, a<-!->c
021Ua-->b<--c, a<-!->c

021C a-->b-->c, a<-!->c
021Ca-->b-->c, a<-!->c

111D a<-!->b-->c, a<-->c
111Da<-!->b-->c, a<-->c

111U a<-!->b-->c, a<-->c
111Ua<-!->b-->c, a<-->c

030T a-->b<--c, a-->c
030Ta-->b<--c, a-->c

030C a<--b<--c, a-->c
030Ca<--b<--c, a-->c

201 a<-->b<-!->c, a<-->c
201a<-->b<-!->c, a<-->c

120D a<--b-->c, a<-->c
120Da<--b-->c, a<-->c

120U a-->b<--c, a<-->c
120Ua-->b<--c, a<-->c

120C a-->b-->c, a<-->c
120Ca-->b-->c, a<-->c

210 a-->b<-->c, a<-->c
210a-->b<-->c, a<-->c

300 a<-->b<-->c, a<-->c   
300a<-->b<-->c, a<-->c

These codes are returned by triad.classify as strings.  In the undirected case, only four triad states are possible (corresponding to the number of edges in the triad).  These are evaluated for mode=="graph", with the return value being the number of edges.
这些代码triad.classify作为字符串返回。在无向的情况下,只有四个三合会状态是可能的(在三合会边缘)的数目对应于。这些评价mode=="graph",与返回值的边的数目。


值----------Value----------

A string containing the triad classification, or NA if one or more edges were missing
一个字符串,其中包含的黑社会分类,或NA,如果一个或多个边缘人失踪


警告----------Warning ----------

Valued data and/or loops may cause strange behavior with this routine.  Dichotomize/remove loops first.
有价值的数据和/或环这个程序可能会导致奇怪的行为。对分/第一个消除环路。


(作者)----------Author(s)----------


Carter T. Butts  <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>



参考文献----------References----------




参见----------See Also----------

triad.census, gtrans
triad.census,gtrans


实例----------Examples----------


#Generate a random graph[生成一个随机图]
g<-rgraph(10)

#Classify the triads (1,2,3) and (2,3,4)[分类黑社会(1,2,3)和(2,3,4)]
triad.classify(g,tri=c(1,2,3))
triad.classify(g,tri=c(1,2,3))

#Plot the triads in question[绘制黑社会问题]
gplot(g[1:3,1:3])
gplot(g[2:4,2:4])

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-8 03:38 , Processed in 0.025563 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表