GenerateExample(GraphAlignment)
GenerateExample()所属R语言包:GraphAlignment
Generate example input data
产生例如输入数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generate input data which can be used as an example.
产生输入数据,这可以作为一个例子,用来。
用法----------Usage----------
GenerateExample(dimA, dimB, filling, covariance, symmetric=FALSE, numOrths=0, correlated=NA)
参数----------Arguments----------
参数:dimA
size of network A
网络的大小
参数:dimB
size of network B
网络B的大小
参数:filling
fraction of entries which are not explicitly set to zero
分数没有明确设置为零的条目
参数:covariance
covariance of values
值的协方差
参数:symmetric
generate symmetric matrices
产生对称矩阵
参数:numOrths
number of diagonal elements to set to 1 in example matrix R
对角线上的元素的数量,例如设置为1矩阵R
参数:correlated
indices of correlated rows and columns
相关的行和列的指数
Details
详情----------Details----------
Symmetric example matrices A, B can be generated by specifying TRUE as the 'symmetric' argument. If the 'numOrths' argument is specified, a number of diagonal elements of R equal to the value will be set to 1. If a vector is specified as the 'correlated' argument, the specified rows and columns will be set to correlated values. Leaving this argument blank will result in pairwise correlations of all entries in A,B (or, if the matrices are of different rank, all elements of the smaller on will be correlated with the corresponding parts of the larger matrix).
对称例如矩阵A,B可以生成指定TRUE对称的说法。如果“numOrths”参数指定的值等于R的对角线元素的数量将被设置为1。如果一个向量被指定为“相关的论点,将指定的行和列设置相关值。离开这个参数为空,将导致在所有参赛作品的成对的相关性,在A,B组(或者,如果矩阵是不同等级,对较小的所有元素将相关的相应部位较大的矩阵)。
值----------Value----------
The return value is a list containing example matrices A (a), B (b) and R (r).
返回值是一个列表,其中包含例如矩阵A(A),B(B)和R(R)。
作者(S)----------Author(s)----------
Joern P. Meier, Michal Kolar, Ville Mustonen, Michael Laessig, and Johannes Berg
举例----------Examples----------
ex<-GenerateExample(dimA=22, dimB=22, filling=.5, covariance=.6,
symmetric=TRUE, numOrths=10, correlated=seq(1,18))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|