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

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

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

                                         Change an element in SimMatrix, SymMatrix, or SimVector.
                                         更改元素在SimMatrix,SymMatrix,或SimVector的。

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

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

This function will adjust an element in SimMatrix, SymMatrix, or SimVector.  The specified element may be set to be free parameter with number or distribution object as starting values.  Alternatively, the element can be fixed to be a value (such as 0).
此功能将调整的元素在SimMatrix,SymMatrix,或SimVector。指定的元素可以被设置为可自由参数与作为起始值的数量或分布对象。可替换地,该元件可以被固定为一个值(例如0)。


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


adjust(target, value, pos, numAsFixed)



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

参数:target
Target SimMatrix, SymMatrix, or SimVector that you would like to adjust.  
目标“SimMatrix,SymMatrix或SimVector”,你将要调整。


参数:value
The name of distribution object that you would like to specify (put as <STRONG>character</STRONG> with single or double quotation)  or number that represents fixed values or starting values.  
发行对象的名称,你想指定(<STRONG>字符</ STRONG>用单引号或双引号)或数字,表示固定值或初始值。


参数:pos
The position of element that you would like to adjust, such as "c(1,2)" for the element in Row 1 and Column 2 in the specified matrix.  
元素的位置,你想调整,如"c(1,2)"第1行第2列中指定的矩阵中的元素。


参数:numAsFixed
This argument is used when the VirtualDist argument was specified as number.  If TRUE (as default), the number is treated as fixed parameters.  If FALSE, the number is treated as a starting value and the element is set to be free parameter.  
该参数用于当VirtualDist参数被指定为数字。如果TRUE(默认),这个数字被视为固定的参数。如果FALSE,数字处理作为起始值和元件被设定为自由参数。


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

Return the input SimMatrix, SymMatrix, or SimVector with adjusted element.
返回输入SimMatrix,SymMatrix或SimVector,调整后的元素。


注意----------Note----------

For SymMatrix class, above- and below-diagonal elements will be adjusted simultaneously.  Either above- or below-diagonal element is specified in the pos argument.
SymMatrix类,上面和下面的对角线元素将同时调整。无论是上述或以下的非对角线元素被指定在pos参数。


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



Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>)




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

SimMatrix for random parameter matrix
SimMatrix随机参数矩阵

SymMatrix for symmetric random parameter matrix
SymMatrix为的对称随机参数矩阵

SimVector for random parameter vector
SimVector随机参数向量


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


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

u34 <- simUnif(0.3, 0.4)
LX <- adjust(LX, "u34", c(2, 1))
summary(LX)
run(LX)

LX <- adjust(LX, 0, c(2,1))
LX <- adjust(LX, 0.5, c(2,2), FALSE)
summary(LX)
run(LX)

factor.mean <- rep(NA, 2)
factor.mean.starting <- c(5, 2)
AL <- simVector(factor.mean, factor.mean.starting)
run(AL)
summary(AL)

n01 <- simNorm(0, 1)
AL <- adjust(AL, "n01", 2)
run(AL)
summary(AL)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-24 21:07 , Processed in 0.029631 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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