getCutoffNonNested(simsem)
getCutoffNonNested()所属R语言包:simsem
Find fit indices cutoff for non-nested model comparison given a priori alpha level
截止先验α水平的非嵌套模型的比较拟合指数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Extract fit indices information from the simulation of two models fitting on the datasets created from both models and getCutoff of fit indices given a priori alpha level
从两个模型拟合的数据集创建的契合度都的模型和getCutoff的先验α水平的模拟,拟合指数信息提取
用法----------Usage----------
getCutoffNonNested(dat1Mod1, dat1Mod2, dat2Mod1=NULL, dat2Mod2=NULL,
alpha=.05, usedFit=NULL, onetailed=FALSE, nVal = NULL, pmMCARval = NULL,
pmMARval = NULL, df = 0)
参数----------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
先验α水平
参数:usedFit
Vector of names of fit indices that researchers wish to get cutoffs from. The default is to get cutoffs of all fit indices.
向量的拟合指数,研究人员希望得到截断的名称。默认是所有的拟合指数的临界值。
参数: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,该功能可按会发现双尾检验截止。
参数:nVal
The sample size value that researchers wish to find the fit indices cutoffs from.
样本大小,研究人员希望找到拟合指数临界值的值。
参数:pmMCARval
The percent missing completely at random value that researchers wish to find the fit indices cutoffs from.
%完全丢失,研究人员希望找到拟合指数临界值的随机值。
参数:pmMARval
The percent missing at random value that researchers wish to find the fit indices cutoffs from.
失踪的随机值,研究人员希望找到拟合指数临界值的百分比。
参数:df
The degree of freedom used in spline method in predicting the fit indices by the predictors. If df is 0, the spline method will not be applied.
预测的拟合指数的预测中使用的样条方法的自由度。如果df是0,样条方法将不适用。
值----------Value----------
One- or two-tailed cutoffs of several fit indices with a priori alpha level. The cutoff is based on the fit indices from Model 1 subtracted by the fit indices from Model 2.
单组分或双尾临界值的拟合指数的先验α水平。截止基础上减去2从模型的拟合指数的拟合指数模型1。
(作者)----------Author(s)----------
Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>)
参见----------See Also----------
SimResult for a detail of simResult getCutoff for a detail of finding cutoffs for absolute fit getCutoffNested for a detail of finding cutoffs for nested model comparison plotCutoffNonNested Plot cutoffs for non-nested model comparison
SimResult一个细节simResultgetCutoff一个细节找到绝对适合的截止时间为getCutoffNested一个细节的嵌套模型的比较发现临界值plotCutoffNonNested图截断非嵌套模型的比较
实例----------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)
getCutoffNonNested(Output.A.A, Output.A.B, Output.B.A, Output.B.B)
getCutoffNonNested(Output.A.A, Output.A.B)
getCutoffNonNested(Output.B.B, Output.B.A)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|