symMatrix(simsem)
symMatrix()所属R语言包:simsem
Create symmetric simMatrix that save free parameters and starting values, as well as fixed values
创建对称simMatrix,除自由参数的初始值,以及固定值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create SymMatrix object that save free parameters and starting values, as well as fixed values. This will be used for model specification later, such as for factor residual correlation matrix or measurement error correlation matrix.
创建SymMatrix对象,除自由参数的初始值,以及固定值。这将用于型号规格后,如因素残余相关矩阵或测量误差相关矩阵。
用法----------Usage----------
symMatrix(free = NULL, value = NULL)
参数----------Arguments----------
参数:free
Symmetric matrix of free parameters. Use NA to specify free parameters. Use number as fixed value (including zero). The input matrix need to be symmetric matrix. If this argument is not specified, the information from the value argument is used. The positions in the value argument that are 0 or "" are fixed parameters as 0. The positions with 1 are fixed parameters as 1. The other positions are free parameters.
对称矩阵的自由参数。使用NA到指定的自由参数。使用数字为固定值(包括零)。需要输入矩阵是对称矩阵。如果这个参数没有被指定,value参数的信息。在value参数是0或“”的位置是固定的参数为0。与1的位置为1的固定参数。其他位置的参数。
参数:value
Starting values. Can be either one element or matrix with the same dimension as free parameter matrix. Each element can be numbers (in either as.numeric or as.character format) or the name of distribution object VirtualDist.
启动值。可以是一个元件或作为自由参数矩阵具有相同的维数的矩阵。每个元素都可以是数字(在是as.numeric或as.character格式)或发行对象VirtualDist的名称。
值----------Value----------
SymMatrix object that will be used for model specification later.
SymMatrix对象将用于型号规格。
(作者)----------Author(s)----------
Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>)
参见----------See Also----------
See VirtualDist for the resulting object. See simMatrix for creating simMatrix and simVector for simVector.
见VirtualDist的对象。见simMatrix创造simMatrix和simVectorsimVector。
实例----------Examples----------
latent.cor <- matrix(NA, 3, 3)
diag(latent.cor) <- 1
RPH <- symMatrix(latent.cor, 0.5)
u46 <- simUnif(0.4, 0.6)
factor.cor <- matrix(NA, 4, 4)
diag(factor.cor) <- 1
factor.cor.start <- matrix("u46", 4, 4)
factor.cor.start[1, 2] <- factor.cor.start[2, 1] <- "0.5"
RPS <- symMatrix(factor.cor, factor.cor.start)
start <- diag(4)
start[1, 2] <- 0.5
start[2, 1] <- 0.5
ST <- symMatrix(value=start)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|