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 <- 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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|