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

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

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

                                         Monte Carlo Confidence Intervals to Test Complex Indirect Effects
                                         蒙地卡罗的置信区间测试复杂的间接影响

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

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

This function takes an expression for an indirect effect, the parameters and standard errors associated with the expression and returns a confidence interval based on a Monte Carlo test of mediation (MacKinnon, Lockwood, & Williams, 2004).
这个函数有一个表达的间接影响,与表达的参数和标准错误,并返回的置信区间的基础上调解(麦金农,洛克伍德·威廉姆斯,2004年)蒙地卡罗测试。


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


monteCarloMed(expression, ..., ACM=NULL, rep=20000, CI=95, plot=FALSE, outputValues=FALSE)



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

参数:expression
A character scalar representing the computation of an indirect effect. Different parameters in the expression should have different alphanumeric values. Expressions can use either addition (+) or multiplication (*) operators.
一个字符标量计算的间接影响。在表达式中的不同的参数,应该有不同的字母数字值。表达式可以使用加号(+)或乘法(*)运算符。


参数:...
Parameter estimates for all parameters named in expression. The order of parameters should follow from expression (the first parameter named in expression should be the first parameter listed in ...). Alternatively ... can be a vector of parameter estimates.
命名expression所有参数的参数估计。参数的顺序应遵循expression(第一个参数命名为expression应该是第一个参数中列出)。另外...可以是一个矢量参数估计值。


参数:ACM
A matrix representing the asymptotic covariance matrix of the parameters described in expression. This matrix should be a symetric matrix with dimensions equal to the number of parameters names in expression. Information on finding the ACOV is popular SEM software is described below.)
参数的渐近协方差矩阵的矩阵中描述的expression。这个矩阵应该是一个对称矩阵的尺寸等于在expression的数量的参数名称。关于找到的ACOV的是流行的SEM软件的信息描述如下。)


参数:rep
The number of replications to compute. Many thousand are reccomended.        
的复制数计算。几千reccomended。


参数:CI
Width of the confidence interval computed.
置信区间的宽度计算出来的。


参数:plot
Should the function output a plot of simulated values of the indirect effect?
如果函数输出的模拟值的间接影响的图吗?


参数:outputValues
Should the function output all simulated values of the indirect effect?
如果函数输出所有模拟值的间接影响呢?


Details

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

This function implements the Monte Carlo test of mediation first described in MacKinnon, Lockwood, & Williams (2004) and extends it to complex cases where the indirect effect is more than a function of two parameters. The function takes an expression for the indirect effect, randomly simulated values of the indirect effect based on the values of the parameters (and the associated standard errors) comprising the indirect effect, and outputs a confidence interval of the indirect effect based on the simulated values. For further information on the Monte Carlo test of mediation see MacKinnon, Lockwood, & Williams (2004), Preacher & Selig (in press), and Selig & Preacher (2008). For a Monte Carlo test of mediation with a random effects model see Selig & Preacher (2010).
此功能实现了蒙特卡罗试验,调解优先麦金农,洛克伍德·威廉姆斯(2004年),并扩展它的间接影响是复杂的情况下,以上两个参数的函数。该函数表达式的间接效应,间接的影响的基础上的参数值(和相关的标准误差),包括间接影响的随机模拟值,并输出基于模拟值的置信区间的间接效应。欲了解更多信息的Monte Carlo试验的调解看到麦金农,洛克伍德和威廉姆斯(2004年),传道塞利格(),和塞利格传道者(2008年)。对于蒙特卡罗调解与随机效应模型试验,请参阅:塞利格传道(2010)。

The asymptotic covariance matrix can be easily found in many popular SEM software applications.
渐近协方差矩阵可以很容易地发现在许多流行的SEM软件应用程序。

LISRELIncluding the EC option on the OU line will print the ACM to a seperate file. The file contains the lower triangular elements of the ACM in free format and scientific notation
ACM LISRELIncluding EC选项的OU线将打印到一个单独的文件。该文件包含ACM的下三角元素的自由格式和科学记数法

MplusInclude the command TECH3; in the OUTPUT section. The ACM will be printed in the output.
MplusInclude TECH3命令,在输出部分。 ACM将打印在输出。

lavaan Use the command vcov on the fitted lavaan object to print the ACM to the screen
lavaan可以使用命令vcov上的的装lavaan对象在屏幕上打印ACM


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

A matrix with values for the upper and lower limits of the confidence interval generated from the Monte Carlo test of mediation. If outputValues=TRUE, output will be a list with a matrix with values for the upper and lower limits of the confidence interval as the first element and a vector of simulated values of the indirect effect as the second element.
调解蒙特卡洛测试产生的置信区间的上限和下限的值的矩阵。如果outputValues=TRUE,输出将与作为第一元件和间接效应的模拟值作为第二个元素的向量的置信区间的上限和下限的值的矩阵的列表。


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



Corbin Quick (University of Kansas; <a href="mailto:corbinq@ku.edu">corbinq@ku.edu</a>)
Alexander M. Schoemann (University of Kansas; <a href="mailto:schoemann@ku.edu">schoemann@ku.edu</a>)
James P. Selig (University of New Mexico; <a href="mailto:selig@unm.edu">selig@unm.edu</a>




参考文献----------References----------





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


#Simple two path mediation[简单的两个路径调解]
#Write expression of indirect effect[写表达间接影响]
med <- 'a*b'
#Paramter values from analyses[放慢参数值分析]
aparam <- 1
bparam<-2
#Asymptotic covariance matrix from analyses[渐近协方差矩阵分析]
AC <- matrix(c(.01,.00002,
               .00002,.02), nrow=2, byrow=TRUE)
#Compute CI, include a plot[计算CI,包括图]
monteCarloMed(med, coef1=aparam, coef2=bparam, outputValues=FALSE, plot=TRUE, ACM=AC)

#Use a matrix of parameter estimates as input[使用矩阵参数估计输入]
aparam<-c(1,2)
monteCarloMed(med, coef1=aparam, outputValues=FALSE, plot=TRUE, ACM=AC)



#complex mediation with two paths for the indirect effect[复杂的调解两条路径的间接影响]
#Write expression of indirect effect[写表达间接影响]
med <- 'a1*b1 + a1*b2'
#Paramter values and standard errors from analyses[放慢参数值和标准误差分析]
aparam <- 1
b1param<-2
b2param<-1
#Asymptotic covariance matrix from analyses[渐近协方差矩阵分析]
AC <- matrix(c(1,.00002, .00003,
                    .00002,1, .00002,
                                        .00003, .00002, 1), nrow=3, byrow=TRUE)
#Compute CI do not include a plot[计算CI不包括图]
monteCarloMed(med, coef1=aparam, coef2=b1param, coef3=b2param, ACM=AC)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-18 20:00 , Processed in 0.021852 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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