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

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

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

                                         Create a set of matrices of parameter and parameter values to generate and analyze data that belongs to Path analysis model
                                         创建一组参数和参数值的矩阵生成和分析数据属于路径分析模型

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

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

This function will create set of matrices of free parameters and parameter values that belongs to path analysis model. The requirement is to specify indicator correlation or covariance matrix and regression coefficient matrix.       
此功能将创建属于路径分析模型的参数和参数值的矩阵。要求是指定指标的相关性或协方差矩阵和相关系数矩阵。


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


simSetPath(..., exo = FALSE)



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

参数:...
Each element of model specification, as described in Details  
型号规格的每一个元素,如Details描述


参数:exo
specify TRUE if users wish to specify both exogenous and endogenous indicators.  
指定TRUE如果用户希望指定外源性和内源性两种指标。


Details

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

The matrices and vectors in the endogenous side are
的矩阵和向量中的内源性侧

BE for regression coefficient matrix (need to be SimMatrix object).
BE回归系数矩阵(需要SimMatrix对象)。

PS for residual covariance matrix (need to be SymMatrix object).
PS残协方差矩阵(需要SymMatrix对象)。

RPS for residual correlation matrix (need to be SymMatrix object).
RPS残余相关矩阵(需要SymMatrix对象)。

VPS for residual indicator variance (need to be SimVector object).
VPS剩余的指标变异(需要SimVector对象)。

VE for total indicator variance (need to be SimVector object). NOTE: Either total indicator variance or residual indicator variance is specified. Both cannot be simultaneously specified.
VE总指标的方差(需要SimVector对象)。注意:无论是总量指标的变异或指定残留指标的方差。两者不能同时指定。

AL for indicator intercept (need to be SimVector object).
AL指标拦截(需要SimVector对象)。

ME for indicator total mean (need to be SimVector object). NOTE: Either indicator intercept or indicator total mean is specified. Both cannot be simultaneously specified.
ME指标总的意思是“(需要是SimVector对象”)。注意:无论是指标拦截或指定指标总平均。两者不能同时指定。

There are two required matrices for the specification in the endogenous side only: BE, and RPS (or PS).  If users wish to include the exogenous side in their models, these options are available,
有规范的内源性侧只有两个必需的矩阵:BE,和RPS(PS)。如果用户希望在他们的模型中包括外源侧,这些选项都可用,

GA for regression coefficient matrix from exogenous variable to endogenous variable (need to be SimMatrix object).  
GA外生变量,内生变量(需要是SimMatrix对象“)的回归系数矩阵。

PH for exogenous factor covariance (need to be SymMatrix object).
PH外源性因素方差(需要SymMatrix对象)。

RPH for exogenous factor correlation (need to be SymMatrix object).
RPH外源性因素相关(需要SymMatrix对象)。

VPH or VK for exogenous variable variance (need to be SimVector object).
VPH或VK外生变量方差(需要SimVector对象)。

KA or MK for exogenous variable mean (need to be SimVector object). NOTE: Either total indicator variance or residual indicator variance is specified. Both cannot be simultaneously specified.
KA或MK外生变量平均值(需要SimVector对象)。注意:无论是总量指标的变异或指定残留指标的方差。两者不能同时指定。

There are four required matrices for the specification in both exogenous and endogenous sides: BE, RPS (or PS), GA, and RPH (or PH).  If users specify the correlation/variance format (instead of the covariance format), the default specifications are
有四个必需的矩阵的规范外源性和内源性双方:RPS(PS),GA和RPH(PH)。如果用户指定的相关性/方差格式(代替的协方差格式),默认的规格

All indicator variances are equal to 1. Residual variances are automatically implied from total indicator variances.
所有指示器方差等于1。剩余的差异会自动从总指标的差异暗示。

All residual variances are free parameters.
所有剩余的差异是免费的参数。

All indicator means are equal to 0. Intercepts are automatically implied from total indicator mean.
所有指标装置是等于0。从总量指标平均的拦截会自动暗示。

All indicator intercepts are free parameters.
所有指标拦截的参数。


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

SimSet object that represents the path analysis simModel. This will be used for specifying data or analysis models later.
SimSet对象代表路径分析simModel的的。这将用于购买指定的数据或分析模型。


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



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




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

See class SimSet for simResult details.
请参阅类SimSetsimResult细节。

See SimMatrix, SymMatrix, or SimVector for input details.
SimMatrix,SymMatrix或SimVector输入的信息。

Use simSetCFA to specify CFA model and use simSetSEM to specify full structural equation modeling.
使用simSetCFA到指定CFA模型,并使用simSetSEM指定完整的结构方程模型。


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


u35 <- simUnif(0.3, 0.5)
u57 <- simUnif(0.5, 0.7)
u1 <- simUnif(-0.1, 0.1)
n31 <- simNorm(0.3, 0.1)

path.BE <- matrix(0, 4, 4)
path.BE[3, 1:2] <- NA
path.BE[4, 3] <- NA
starting.BE <- matrix("", 4, 4)
starting.BE[3, 1:2] <- "u35"
starting.BE[4, 3] <- "u57"
BE <- simMatrix(path.BE, starting.BE)

residual.error <- diag(4)
residual.error[1,2] <- residual.error[2,1] <- NA
RPS <- symMatrix(residual.error, "n31")

Path.Model <- simSetPath(RPS = RPS, BE = BE)

u35 <- simUnif(0.3, 0.5)
u57 <- simUnif(0.5, 0.7)
u1 <- simUnif(-0.1, 0.1)
n31 <- simNorm(0.3, 0.1)

path.GA <- matrix(0, 2, 2)
path.GA[1, 1:2] <- NA
GA <- simMatrix(path.GA, "u35")

path.BE <- matrix(0, 2, 2)
path.BE[2, 1] <- NA
BE <- simMatrix(path.BE, "u57")

exo.cor <- matrix(NA, 2, 2)
diag(exo.cor) <- 1
RPH <- symMatrix(exo.cor, "n31")

RPS <- symMatrix(diag(2))

Path.Exo.Model <- simSetPath(RPS = RPS, BE = BE, RPH = RPH, GA = GA, exo=TRUE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 07:12 , Processed in 0.030881 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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