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

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

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

                                        Class "SimModel"
                                         类“SimModel”

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

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

This class will save information for analysis model and be ready for data analysis.
这个类将信息保存为分析模型,并进行数据分析做好准备。


类对象----------Objects from the Class----------

Objects can be created by simModel. It can also be called by new("SimModel", ...).
对象可以创建simModel。它也可以被称为由new("SimModel", ...)。


插槽----------Slots----------




modelType: Model type (CFA, Path, or SEM)
modelType:型号(CFA,路径,或SEM)




param: Set of all free parameters and values of fixed parameters in the model.
param:在模型中的所有参数和固定参数的值。




start: All starting values of free parameters
start:所有的自由参数的初始值




equalCon: Equality constraints in SimEqualCon class
equalCon:SimEqualCon类等式约束




package: Packages used in data analysis, either lavaan or OpenMx. The default is lavaan
package:用于数据分析包,是lavaan或OpenMx。默认的是lavaan




estimator: The default is ML estimator. Other alternatives are GLS, WLS, MLM, MLF, and MLR. Check the sem function help file in the lavaan package for further details
estimator:默认情况下是ML估计。其他的替代品GLS,WLS,MLM,MLF和MLR。检查扫描电镜功能lavaan包帮助文件中有关进一步详情




auxiliary: The names or the index of the auxiliary variables in the data
auxiliary:在数据中的辅助变量的名称或索引




indLab: The names of the variable in the model. The exogenous indicators should be listed first (from x1) and then endogenous indicators should be listed next (from y1).
indLab:在模型中的变量的名称。外源性指标应列在第一位(从x1)和内源性指标应列出下(Y1)。




factorLab: The names of the factors in the model. The exogenous factors should be listed first (from k1) and then endogenous factors should be listed next (from y1).
factorLab:的因素在模型中的名称。应列在第一位的外在因素(K1)和内源性因素应列出下(Y1)。


方法----------Methods----------




run To analyze data. There are two required arguments: object and data. object is the SimModel object. data is data saved in data.frame. The following arguments are not required. simMissing, is the SimMissing object. indLab is the labels of the data used to name the indicators in the model. If x-side is specified, the x side goes first then the y side. factorLab is the labels of the factors in the model. If x-side is specified, the x side goes first and then the y side.
运行数据进行分析。有两个必需的参数:object和data。 object是SimModel对象。 data是数据保存在data.frame。以下参数不是必需的。 simMissing,是SimMissing对象。 indLab的标签data用来命名模型中的指标。被指定时,如果x侧x侧变为第一然后y侧。 factorLab的因素在模型中的标签。如果指定x侧,x侧进入第一和然后y侧。




summary To summarize the object
总结要总结的对象


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



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




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

simModel for the constructor of this class.
simModel这个类的构造函数。

SimEqualCon for specifying equality constraints.       
SimEqualCon指定等式约束。


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


showClass("SimModel")
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)
latent.cor <- matrix(NA, 2, 2)
diag(latent.cor) <- 1
RPH <- symMatrix(latent.cor, 0.5)
error.cor <- matrix(0, 6, 6)
diag(error.cor) <- 1
RTD <- symMatrix(error.cor)
CFA.Model <- simSetCFA(LX = LX, RPH = RPH, RTD = RTD)
SimModel <- simModel(CFA.Model)
summary(SimModel)

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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