SimResultParam-class(simsem)
SimResultParam-class()所属R语言包:simsem
Class "SimResultParam"
类“SimResultParam”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The parameter result object that represents the parameter values used in each replication in a simulation study. This object saves the parameter values and model misspecification of each replication and is able to summarize the population misfits.
该参数表示该参数的值在每个复制使用在模拟研究的结果对象。这个对象保存的参数值和每个复制的模型错误的,是能够总结的人口格格不入。
类对象----------Objects from the Class----------
Object can be created by simResultParam, Objects can be also created by calls of the form new("SimResultParam", ...).
对象可以创建的simResultParam,对象可以被创建通过调用的形式new("SimResultParam", ...)。
插槽----------Slots----------
modelType: Model type (CFA, Path, Path.exo, SEM, or SEM.exo)
modelType:型号(CFA,路径,Path.exo,扫描电镜(SEM),或SEM.exo)
nRep: The number of drawn (replications)
nRep:画(复制)
param: The SimSet class that saves the specification of actual parameters
param:SimSet类,节省了规范的实际参数
misspec: The SimMisspec class that saves the specification of misspecified parameters
misspec:SimMisspec类,节省了规范的误设参数
fit: The population misfits
fit:人口不称职
seed: The seed number used to draw parameters
seed:种子数用于绘制参数
方法----------Methods----------
summary Get the summary of model specification
总结取得的型号规格概要
summaryParam Get the summary of the obtained actual parameters
summaryParam获取所得到的实际参数的概要
plotMisfit Plot the population misfit or the relationship between the amount of misfit and the misspecified parameters. See plotMisfit for further details.
plotMisfit绘制的人口失配或之间的失配量的关系和错误指定的参数。见plotMisfit进一步的细节。
(作者)----------Author(s)----------
Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>)
参见----------See Also----------
simResultParam for the constructor this class
simResultParam这个类的构造
SimSet for the specification of model parameter
SimSet模型参数的规范
SimMisspec for the specification of misspecified parameter
SimMisspec误设参数的规范
SimEqualCon for the specification of the equality constraints
SimEqualCon等式约束的规范
实例----------Examples----------
showClass("SimResultParam")
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(5, Path.Model, Path.Mis.Model)
summary(ParamObject)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|