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

R语言 simsem包 simMatrix()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 09:29:18 | 显示全部楼层 |阅读模式
simMatrix(simsem)
simMatrix()所属R语言包:simsem

                                         Create simMatrix that save free parameters and starting values, as well as fixed values
                                         创建simMatrix自由参数的初始值,以及固定值,除

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

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

Create SimMatrix 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 loading matrix or regression coefficient matrix.
创建SimMatrix对象,除自由参数的初始值,以及固定值。这将用于型号规格后,如对因子载荷矩阵或相关系数矩阵。


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


simMatrix(free = NULL, value = NULL)



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

参数:free
Matrix of free parameters. Use NA to specify free parameters. Use number as fixed value (including zero). 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 other positions are free parameters.  
矩阵的自由参数。使用NA到指定的自由参数。使用数字为固定值(包括零)。如果这个参数没有被指定,value参数的信息。在value参数是0或“”的位置是固定的参数为0。其他位置的参数。


参数: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----------

SimMatrix object that will be used for model specification later.
SimMatrix对象将用于型号规格。


(作者)----------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.
见VirtualDist的对象。

See symMatrix for creating symmetric simMatrix.
见symMatrix:创建对称的simMatrix的。

See simVector for simVector.
见simVector的simVector。


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


loading <- matrix(0, 6, 2)
loading[1:3, 1] <- NA
loading[4:6, 2] <- NA
loadingValues <- matrix(0, 6, 2)
loadingValues[1:3, 1] <- 0.7
loadingValues[4:6, 2] <- 0.7
LX <- simMatrix(loading, loadingValues)
summary(LX)
run(LX)

n65 <- simNorm(0.6, 0.05)
LY <- simMatrix(loading, "n65")
summary(LY)
run(LY)

start <- matrix(0, 6, 2)
start[1:3, 1] <- 0.7
start[4:6, 2] <- 0.7
ST <- simMatrix(value=start)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 04:21 , Processed in 0.021450 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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