SimMatrix-class(simsem)
SimMatrix-class()所属R语言包:simsem
Matrix object: Random parameters matrix
Matrix对象:随机参数矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This object can be used to represent a matrix in SEM model. It contains free parameters, fixed values, and starting values. This object can be represented factor loading matrix or regreesion coefficient matrix.
这个对象可以被用来代表SEM模型中的矩阵。它包含自由参数,固定值,并开始值。此对象可表示的因子载荷的矩阵或regreesion的系数矩阵。
类对象----------Objects from the Class----------
This object is created by "simMatrix" function. Objects can be also created by calls of the form new("SimMatrix", ...).
这个对象被创建的"simMatrix"功能。也可以创建对象通过调用的形式new("SimMatrix", ...)。
插槽----------Slots----------
free: indicates which elements of the matrix are free or fixed. "NA" means the element is freely estimated. Numbers (including 0) means the element is fixed to be the indicated number.
free:矩阵的元素是免费的或固定的。 "NA"意味着元素自由地估计。数字(包括0)的装置被固定在指定数目的元素。
value: indicates the starting values of each element in the matrix. The starting values could be numbers or the name of "distribution objects"
value:表示在矩阵中的每个元素的初始值。初始值可以是数字或名称"distribution objects"
方法----------Methods----------
adjust Adjust an element in the "SimMatrix" object
adjust调整"SimMatrix"对象中的一个元素
run Draws starting values from the "labels" slot and show as a matrix sample.
run"labels"插槽,并显示为矩阵样本绘制的初始值。
summaryShort Provides a short summary of all information in the object
summaryShort提供了一个简短的总结中所有信息的对象
summary Provides a thorough description of all information in the object
summary提供了一个全面的描述中所有信息的对象
extract Extract elements from a simMatrix. The additional arguments are the indicies of rows and columns to be extracted.
extract提取元素从simMatrix。额外的参数是要提取的行和列的索引。
(作者)----------Author(s)----------
Sunthud Pornprasertmanit (University of Kansas; <a href="mailto:psunthud@ku.edu">psunthud@ku.edu</a>)
参见----------See Also----------
SymMatrix for symmetric random parameter matrix
SymMatrix为的对称随机参数矩阵
SimVector for random parameter vector.
SimVector随机参数向量。
实例----------Examples----------
showClass("SimMatrix")
loading <- matrix(0, 6, 2)
loading[1:3, 1] <- NA
loading[4:6, 2] <- NA
loadingValues <- matrix(0, 6, 2)
loadingValues[1:3, 1] <- 0.7
loadingValues[4:6, 2] <- 0.7
LX <- simMatrix(loading, loadingValues)
summary(LX)
run(LX)
n65 <- simNorm(0.6, 0.05)
LY <- simMatrix(loading, "n65")
summary(LY)
run(LY)
u34 <- simUnif(0.3, 0.4)
LY <- adjust(LY, "u34", c(2, 1))
summary(LY)
run(LY)
summaryShort(LY)
LY <- extract(LY, 1:3, 1)
summary(LY)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|