plotCutoffNonNested(simsem)
plotCutoffNonNested()所属R语言包:simsem
Plot sampling distributions of the differences in fit indices between non-nested models with fit indices cutoffs
图抽样分布在非嵌套模型的拟合指数之间的拟合指数临界值的差异
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function will plot sampling distributions of the differences in fit indices between non-nested models. The users may add cutoffs by specifying the alpha level.
此功能将绘制抽样分布在非嵌套模型的拟合指数之间的差异。用户可以添加的截断通过指定alpha水平的。
用法----------Usage----------
plotCutoffNonNested(dat1Mod1, dat1Mod2, dat2Mod1=NULL, dat2Mod2=NULL,
alpha=0.05, cutoff = NULL, usedFit = NULL, useContour = T, onetailed=FALSE)
参数----------Arguments----------
参数:dat1Mod1
SimResult that saves the simulation of analyzing Model 1 by datasets created from Model 1
SimResult,节省了模拟分析模型1模型1所创建的数据集
参数:dat1Mod2
SimResult that saves the simulation of analyzing Model 2 by datasets created from Model 1
SimResult,节省了模拟分析模型2模型1所创建的数据集
参数:dat2Mod1
SimResult that saves the simulation of analyzing Model 1 by datasets created from Model 2
SimResult,节省了模拟分析模型1模型2所创建的数据集
参数:dat2Mod2
SimResult that saves the simulation of analyzing Model 2 by datasets created from Model 2
SimResult,节省了模拟分析模型2模型2所创建的数据集
参数:alpha
A priori alpha level
先验α水平
参数:cutoff
A priori cutoffs for fit indices, saved in a vector
先验的截止时间为拟合指数,保存在一个向量
参数:usedFit
Vector of names of fit indices that researchers wish to plot the sampling distribution.
矢量,研究人员希望绘制的抽样分布的拟合指数的名称。
参数:useContour
If there are two of sample size, percent completely at random, and percent missing at random are varying, the plotCutoff function will provide 3D graph. Contour graph is a default. However, if this is specified as FALSE, perspective plot is used.
如果有两个样本量,%完全随机的,百分之随机缺失不同的,plotCutoff:功能将提供3D图形。等高线图是默认的。但是,如果这是指定作为FALSE,使用立体图。
参数:onetailed
If TRUE, the function will find the cutoff from one-tail test. If FALSE, the funciton will find the cutoff from two-tailed test.
如果TRUE,功能会发现截止的单尾测试。如果FALSE,该功能可按会发现双尾检验截止。
值----------Value----------
NONE. Only plot the fit indices distributions.
NONE。仅绘制的拟合指数分布。
(作者)----------Author(s)----------
Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>)
参见----------See Also----------
SimResult for simResult that used in this function.
SimResultsimResult中使用此功能。
getCutoffNonNested to find the difference in fit indices cutoffs for non-nested model comparison
getCutoffNonNested非嵌套模型的比较拟合指数临界值的差异
实例----------Examples----------
## Not run: [#不运行:]
n1 <- simNorm(0, 0.1)
u79 <- simUnif(0.7, 0.9)
loading.A <- matrix(0, 8, 2)
loading.A[1:3, 1] <- NA
loading.A[4:8, 2] <- NA
LX.A <- simMatrix(loading.A, 0.7)
latent.cor <- matrix(NA, 2, 2)
diag(latent.cor) <- 1
RPH <- symMatrix(latent.cor, "u79")
RTD <- symMatrix(diag(8))
CFA.Model.A <- simSetCFA(LY = LX.A, RPS = RPH, RTE = RTD)
error.cor.mis <- matrix(NA, 8, 8)
diag(error.cor.mis) <- 1
RTD.Mis <- symMatrix(error.cor.mis, "n1")
CFA.Model.A.Mis <- simMisspecCFA(RTE = RTD.Mis)
loading.B <- matrix(0, 8, 2)
loading.B[1:4, 1] <- NA
loading.B[5:8, 2] <- NA
LX.B <- simMatrix(loading.B, 0.7)
CFA.Model.B <- simSetCFA(LY = LX.B, RPS = RPH, RTE = RTD)
SimData.A <- simData(CFA.Model.A, 500)
SimData.B <- simData(CFA.Model.B, 500)
SimModel.A <- simModel(CFA.Model.A)
SimModel.B <- simModel(CFA.Model.B)
# The actual number of replications should be greater than 10.[的实际数目的复制应该是大于10。]
Output.A.A <- simResult(10, SimData.A, SimModel.A)
Output.A.B <- simResult(10, SimData.A, SimModel.B)
Output.B.A <- simResult(10, SimData.B, SimModel.A)
Output.B.B <- simResult(10, SimData.B, SimModel.B)
plotCutoffNonNested(Output.A.A, Output.A.B, Output.B.A, Output.B.B)
plotCutoffNonNested(Output.A.A, Output.A.B)
plotCutoffNonNested(Output.A.A, Output.A.B, onetailed=TRUE)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|