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

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

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

                                         Plot the graphs for probing latent interaction
                                         绘制图表的探测潜在的相互作用

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

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

This function will plot the line graphs representing the simple effect of the independent variable given the values of the moderator.
此功能将绘制线图的简单影响的独立变量的值的主持人。


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


plotProbe(object, xlim, xlab="Indepedent Variable", ylab="Dependent Variable", ...)



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

参数:object
The result of probing latent interaction obtained from probe2WayMC, probe2WayRC, probe3WayMC, or probe3WayRC function.  
获得probe2WayMC,probe2WayRC,probe3WayMC或probe3WayRC函数的探测潜在的相互作用的结果。


参数:xlim
The vector of two numbers: the minimum and maximum values of the independent variable  
两个数字:独立变量的最小值和最大值的向量


参数:xlab
The label of the x-axis  
的x-轴的标签


参数:ylab
The label of the y-axis  
的y轴的标签


参数:...
Any addition argument for the plot function  
plot功能添加任何参数


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

None. This function will plot the simple main effect only.
无。此功能将绘制的主要效果。


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



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




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

indProd For creating the indicator products with no centering, mean centering, double-mean centering, or residual centering.
indProd创建指标的产品没有定心,意思是双中心,平均居中,或剩余定心。

probe2WayMC For probing the two-way latent interaction when the results are obtained from mean-centering, or double-mean centering.
probe2WayMC用于探测的双向潜相互作用时,结果是从意味着定心,或双均值定心。

probe3WayMC For probing the three-way latent interaction when the results are obtained from mean-centering, or double-mean centering.
probe3WayMC用于意味着定心,或双均值定心时,结果是从探测三通潜相互作用。

probe2WayRC For probing the two-way latent interaction when the results are obtained from residual-centering approach.
probe2WayRC用于探测从残余定心方法时的结果,得到的双向潜相互作用。

probe3WayRC For probing the two-way latent interaction when the results are obtained from residual-centering approach.
probe3WayRC用于探测从残余定心方法时的结果,得到的双向潜相互作用。


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


library(lavaan)

dat2wayMC <- indProd(dat2way, 1:3, 4:6)

model1 <- "
f1 =~ x1 + x2 + x3
f2 =~ x4 + x5 + x6
f12 =~ x1.x4 + x2.x5 + x3.x6
f3 =~ x7 + x8 + x9
f3 ~ f1 + f2 + f12
f12 ~~0*f1
f12 ~~ 0*f2
x1 ~ 0*1
x4 ~ 0*1
x1.x4 ~ 0*1
x7 ~ 0*1
f1 ~ NA*1
f2 ~ NA*1
f12 ~ NA*1
f3 ~ NA*1
"

fitMC2way <- sem(model1, data=dat2wayMC, meanstructure=TRUE, std.lv=FALSE)
result2wayMC <- probe2WayMC(fitMC2way, c("f1", "f2", "f12"), "f3", "f2", c(-1, 0, 1))
plotProbe(result2wayMC, xlim=c(-2, 2))


dat3wayMC <- indProd(dat3way, 1:3, 4:6, 7:9)

model3 <- "
f1 =~ x1 + x2 + x3
f2 =~ x4 + x5 + x6
f3 =~ x7 + x8 + x9
f12 =~ x1.x4 + x2.x5 + x3.x6
f13 =~ x1.x7 + x2.x8 + x3.x9
f23 =~ x4.x7 + x5.x8 + x6.x9
f123 =~ x1.x4.x7 + x2.x5.x8 + x3.x6.x9
f4 =~ x10 + x11 + x12
f4 ~ f1 + f2 + f3 + f12 + f13 + f23 + f123
f1 ~~ 0*f12
f1 ~~ 0*f13
f1 ~~ 0*f123
f2 ~~ 0*f12
f2 ~~ 0*f23
f2 ~~ 0*f123
f3 ~~ 0*f13
f3 ~~ 0*f23
f3 ~~ 0*f123
f12 ~~ 0*f123
f13 ~~ 0*f123
f23 ~~ 0*f123
x1 ~ 0*1
x4 ~ 0*1
x7 ~ 0*1
x10 ~ 0*1
x1.x4 ~ 0*1
x1.x7 ~ 0*1
x4.x7 ~ 0*1
x1.x4.x7 ~ 0*1
f1 ~ NA*1
f2 ~ NA*1
f3 ~ NA*1
f12 ~ NA*1
f13 ~ NA*1
f23 ~ NA*1
f123 ~ NA*1
f4 ~ NA*1
"

fitMC3way <- sem(model3, data=dat3wayMC, meanstructure=TRUE, std.lv=FALSE)
result3wayMC <- probe3WayMC(fitMC3way, c("f1", "f2", "f3", "f12", "f13", "f23", "f123"), "f4", c("f1", "f2"), c(-1, 0, 1), c(-1, 0, 1))
plotProbe(result3wayMC, xlim=c(-2, 2))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-18 22:59 , Processed in 0.026258 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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