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

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

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

                                         Plot the population misfit in parameter result object
                                         在参数结果对象,绘制人口的失配

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

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

Plot a histogram of the amount of population misfit in parameter result object or the scatter plot of the relationship between misspecified parameter and the population misfit
绘制人口的失配量的直方图的参数结果对象或错误指定的参数和人口的失配之间的关系的散点图


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


plotMisfit(object, usedFit="default", misParam=NULL)



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

参数:object
The parameter result object, SimResultParam  
参数结果对象,SimResultParam的


参数:usedFit
The fit indices used to plot. If the misParam is not specified, all fit indices are used. If the misParam is specified, the "rmsea" is used in the plot.  
用于绘制的拟合指数。如果misParam没有被指定,所有的拟合指数。如果misParam指定,"rmsea"的图。


参数:misParam
The index or the name of misspecified parameters used to plot.  
该指数或误设参数用于绘制的名称。


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

None. This function will plot only.
无。此功能将绘制。


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



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




实例----------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")

ME <- simVector(rep(NA, 4), 0)

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

mis.path.BE <- matrix(0, 4, 4)
mis.path.BE[4, 1:2] <- NA
mis.BE <- simMatrix(mis.path.BE, "u1")
Path.Mis.Model &lt;- simMisspecPath(BE = mis.BE, misfitType="rmsea") #, misfitBound=c(0.05, 0.08))[misfitBound = C(0.05,0.08))]

# The number of replications in actual analysis should be much more than 5[在实际分析中的复制的数目应远远超过5]
ParamObject <- simResultParam(20, Path.Model, Path.Mis.Model)
plotMisfit(ParamObject)

plotMisfit(ParamObject, misParam=1:2)

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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