interval.graph(sna)
interval.graph()所属R语言包:sna
Convert Spell Data to Interval Graphs
转换拼写的数据区间图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Constructs one or more interval graphs (and exchangeability vectors) from a set of spells.
构造一个或多个区间图(和互换性向量)从一组的法术。
用法----------Usage----------
interval.graph(slist, type="simple", diag=FALSE)
参数----------Arguments----------
参数:slist
A spell list. This must consist of an nxmx3 array, with n being the number of actors, m being the maximum number of spells (one per row) and with the three columns of the last dimension containing a (categorical) spell type code, the time of spell onset (any units), and the time of spell termination (same units), respectively.
法术列表。这必须由的nxmx3阵列,其中n是演员的数量,m为最大数量的法术(每行一个),三列的最后一个维度包含法术类型代码(分类),时间的法术发病(任意单位),和拼写终止的时间(单位相同),分别为。
参数:type
One of “simple”, “overlap”, “fracxy”, “fracyx”, or “jntfrac”.
其中的“简单”,“重叠”,“fracxy”,“fracyx”,或“jntfrac”。
参数:diag
Include the dyadic entries?
包括二元项目?
Details
详细信息----------Details----------
Given some ordering dimension T (usually time), a “spell” is defined as the interval between a specified onset and a specified termination (with onset preceding the termination). An interval graph, then, on spell set V, is G=\{V,E\}, where {i,j} in E iff there exists some point e \in T such that t \in i and t \in j. In more prosaic terms, an interval graph on a given spell set has each spell as a vertex, with vertices adjacent iff they overlap. Such structures are useful for quantifying life history data (where spells might represent marriages, periods of child custody/co-residence, periods of employment, etc.), organizational history data (where spells might reflect periods of strategic alliances, participation in a particular product market, etc.), task scheduling (with spells representing the dedication of a particular resource to a given task), etc. By giving complex historical data a graphic representation, it is possible to easily perform a range of analyses which would otherwise be difficult and/or impossible (see Butts and Pixley (2004) for examples).
鉴于一些订购尺寸T(通常为时间),被定义为“拼写”指定的开始之间的时间间隔和一个指定的终止(发病前终止)。然后,区间图,法术集V是G=\{V,E\},{i,j} in E当且仅当存在一些点e \in T等t \in i和t \in j。较为平淡,在一个给定的法术集的区间图的每个法术为顶点,顶点相邻当且仅当它们重叠。这种结构是有用的生活的历史数据(其中法术可能代表婚姻,子女抚养权/共居的时期,期间的就业,等等),组织的历史数据(,法术可能反映期间的战略联盟,参与在一个特定的量化产品市场等),任务调度的法术代表一个特定的资源奉献给定的任务等复杂的历史数据的图形表示,它可以很容易地进行了一系列的分析,否则将是困难和/或不可能(见Butts和Pixley的(2004年)的例子)。
In addition to the simple interval graph (described above), interval.graph can also generate valued interval graphs using a number of different edge definitions. This is controlled by the type argument, with edge values as follows: <ol> simple: dichotomous coding based on simple overlap (i.e., (x,y)=1 iff x overlaps y)
除了简单的间隔图(如上所述),interval.graph都可以生成值区间图使用了一些不同的边缘定义。这是由type参数,边缘值如下:<OL>简单的二分法编码的基础上简单的重叠(即(X,Y)= 1,当且仅当所述重叠Ÿ)
overlap: edge value equals the total magnitude of the overlap between spells
重叠:边沿值等于总幅度之间的重叠咒语
fracxy: the (x,y) edge value equals the fraction of the duration of y which is covered by x
fracxy:(的x,y)的边缘值等于分数y的持续时间,这是由x覆盖
fracyx: the (x,y) edge value equals the fraction of the duration of x which is covered by y
fracyx:(的x,y)的边缘值等于x的持续时间,这是由y覆盖馏分
jntfrac: edge value equals the total magnitude of the overlap between spells divided by the mean of the spells' lengths </ol> Note that “simple,” “overlap,” and “jntfrac” are symmetric relations, while “fracxy” and “fracyx” are directed. As always, the specific edge type used should reflect the application to which the interval graph is being put.
jntfrac边缘的值等于总大小除以平均法术的长度</ OL>需要注意的是“简单”,“重叠的法术之间的重叠,”和“jntfrac”是对称的关系,而“fracxy”和“fracyx”的定向。与往常一样,特定的边缘类型应该反映到的应用程序的时间间隔图正在实施。
值----------Value----------
A data frame containing:
一个数据框包含:
<table summary="R valueblock"> <tr valign="top"><td>graph </td> <td> A graph stack containing the interval graphs</td></tr> <tr valign="top"><td>exchange.list </td> <td> Matrix containing the vector of spell types associated with each interval graph</td></tr> </table>
<table summary="R valueblock"> <tr valign="top"> <TD> graph </ TD> <td>一个图形堆栈,其中包含的时间间隔图</ TD> </ TR> <TR VALIGN =“顶”> <TD> exchange.list </ TD> <TD>矩阵含向量的法术类型与每个区间图</ TD> </ TR> </ TABLE>
(作者)----------Author(s)----------
Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>
参考文献----------References----------
Butts, C.T. and Pixley, J.E. (2004). “A Structural Approach to the Representation of Life History Data.” Journal of Mathematical Sociology, 28(2), 81-124.
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|