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

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

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

                                         Equality Constraint Object
                                         等式约束对象

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

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

This function will be used to specify equality constraints.
这个函数将被用于指定等式约束。


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


simEqualCon(..., modelType, conBeforeFill=TRUE)



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

参数:...
Each equality constraint in the model will be specified as a matrix. Rows represent elements that users wish to constrain. For single-group analysis, two columns are needed in the matrix. The first column indicates row of elements and second columns indicates columns of elements. Rownames will represent the matrix of elements that they are in. The detail section will discuss about how to specify row names. The first example shown below will show how to specify equality constraints for LY(1,1), LY(2,1), and LY(3,1). For multiple groups, the columns will be three instead. The first column represent groups. The second and third columns represent row and column, respectively. The second example shown below will show how to specify equality constraints for BE(2, 1) of two groups. If you have multiple equality constriants, you can make multiple matrices to represent them and add in the function. See the third example for multiple constraints.  
在模型中的每个等式约束将被指定为一个矩阵。行表示,用户希望限制的元素。对于单组分析中,需要两列在矩阵中。第一列表示的元素的行和第二列表示的元素的列。行名代表矩阵的元素,他们所处的详细信息部分,将讨论有关如何指定行的名称。第一个例子如下图所示,会显示,如何指定等式约束LY(1,1),LY(2,1),LY(3,1)。对于多个组,列,而不是3。第一列表示组。的第二和第三列代表行和列分别。如下图所示的第二个例子将展示如何指定等式约束BE(2, 1)两组。如果您有多个平等的制约性,可以使多个矩阵代表他们添加的功能。请参阅第三个例子诸多因素的制约。


参数:modelType
Type of analysis: CFA, Path, Path.exo, SEM, or SEM.exo.  
分析类型:CFA,Path,Path.exo,SEM或SEM.exo。


参数:conBeforeFill
TRUE if users wish to apply equality constraint before applying the auto-completion on the parameters that users have not specified. FALSE if users wish to apply the auto-completion before applying equality constraint. This option is helpful when users wish to apply the equality constraint on the parameters that users have not specified (e.g., constraining the residual variance, which users let the package to calculate it and not specify it). See runMisspec for further details.  
TRUE如果用户希望应用等式约束,在提出申请前的自动完成用户没有指定的参数。 FALSE如果用户希望应用的自动完成之前应用等式约束。当用户想申请等式约束的参数,用户没有指定(例如,限制剩余方差,这让包来计算的话,不指定的话),这个选项是有帮助的。见runMisspec进一步的细节。


Details

详细信息----------Details----------

Row names specification depends on type of model. If users specify CFA model, the specification in shown in simSetCFA function.  If users specify Path analysis with or without exogenous variables, the specification is shown in simSetPath function. If users specify SEM model with or without exogenous variables, the specification is shown in simSetSEM function.  However, basically, the names of matrices you put in these function are also eligible for this function as well.
行名称规范所依据的模型类型。如果用户指定CFA型号,规格simSetCFA函数。如果用户指定的路径分析带或不带外生变量,规格显示在simSetPath功能。如果用户指定SEM模型的外生变量,带或不带,规格显示在simSetSEM功能。不过,基本上,这些功能在你把矩阵的名字也可享获此功能。


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

Object in SimEqualCon that save those equality constraints.
对象在SimEqualCon保存这些等式约束。


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

The available constraints now are equality constraints. We expect to create nonlinear constraints soon.
可用的限制是平等的限制。我们希望尽快建立非线性约束。


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



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




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

simSetCFA to see model specification in CFA model
simSetCFA看CFA模型的模型规范

simSetPath to see model specification in Path analysis model
simSetPath路径分析模型中看到型号规格

simSetSEM to see model specification in SEM model
simSetSEM看SEM模型的模型规范

SimEqualCon for the simResult
SimEqualCon的simResult


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


# Example 1: Single-group, one constraint[例1:单组,一个约束]
constraint <- matrix(0, 3, 2)
constraint[1,] <- c(1, 1)
constraint[2,] <- c(2, 1)
constraint[3,] <- c(3, 1)
rownames(constraint) <- rep("LY", 3)
equal.loading <- simEqualCon(constraint, modelType="SEM.exo")

# Example 2: Multiple-group, one constraint[例2:多组,一个约束]
group.con <- matrix(0, 2, 3)
group.con[1,] <- c(1, 2, 1)
group.con[2,] <- c(2, 2, 1)
rownames(group.con) <- rep("BE", 2)
equal.path <- simEqualCon(group.con, modelType="Path")

# Example 3: Single-group, multiple constraints[例3:单组,多约束条件]
constraint1 <- matrix(1, 3, 2)
constraint1[,1] <- 1:3
rownames(constraint1) <- rep("LY", 3)
constraint2 <- matrix(2, 3, 2)
constraint2[,1] <- 4:6
rownames(constraint2) <- rep("LY", 3)
constraint3 <- matrix(3, 2, 2)
constraint3[,1] <- 7:8
rownames(constraint3) <- rep("LY", 2)
equal.loading2 <- simEqualCon(constraint1, constraint2, constraint3, modelType="SEM")
summary(equal.loading2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 05:00 , Processed in 0.023366 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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