pdConstruct.pdBlocked(nlme)
pdConstruct.pdBlocked()所属R语言包:nlme
Construct pdBlocked Objects
构建pdBlocked对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function give an alternative constructor for the pdBlocked class, representing a positive-definite block-diagonal matrix. Each block-diagonal element of the underlying matrix is itself a positive-definite matrix and is represented internally as an individual pdMat object. When value is numeric(0), a list of uninitialized pdMat objects, a list of one-sided formulas, or a list of vectors of character strings, object is returned as an uninitialized pdBlocked object (with just some of its attributes and its class defined) and needs to have its coefficients assigned later, generally using the coef or matrix replacement functions. If value is a list of initialized pdMat objects, object will be constructed from the list obtained by applying as.matrix to each of the pdMat elements of value. Finally, if value is a list of numeric vectors, they are assumed to represent the unrestricted coefficients of the block-diagonal elements of the underlying positive-definite matrix.
此功能提供替代pdBlocked类的构造函数,代表一个块对角正定矩阵。每块基础矩阵对角线元素本身是一个正定矩阵和内部作为一个单独的pdMat对象代表。当value是numeric(0),初始化pdMat对象名单,片面的公式,或字符串的向量列表列表,object作为一个返回初始化pdBlocked对象(只是它的属性和它的类中定义的一些),需要有分配系数后,一般使用coef或matrix替换功能。如果value是一个初始化pdMat对象名单,object将构建从通过申请as.matrix<的元素pdMat获得的名单X>。最后,value如果是一个数值向量列表,他们被认为代表底层正定矩阵块对角元素的无限制系数。
用法----------Usage----------
## S3 method for class 'pdBlocked'
pdConstruct(object, value, form, nam, data, pdClass,
...)
参数----------Arguments----------
参数:object
an object inheriting from class pdBlocked, representing a positive definite block-diagonal matrix.
一个对象类pdBlocked正定块对角矩阵,继承。
参数:value
an optional list with elements to be used as the value argument to other pdMat constructors. These include: pdMat objects, positive-definite matrices, one-sided linear formulas, vectors of character strings, or numeric vectors. All elements in the list must be similar (e.g. all one-sided formulas, or all numeric vectors). Defaults to numeric(0), corresponding to an uninitialized object.
可选元素列表作为参数value等pdMat构造。这些措施包括:pdMat对象,正定矩阵,片面的线性公式,字符串或数字向量的向量。列表中的所有元素都必须是类似的(例如,所有片面的公式,或所有的数字向量)。 numeric(0)默认值,相应的未初始化的对象。
参数:form
an optional list of one-sided linear formula specifying the row/column names for the block-diagonal elements of the matrix represented by object. Because factors may be present in form, the formulas needs to be evaluated on a data.frame to resolve the names they defines. This argument is ignored when value is a list of one-sided formulas. Defaults to NULL.
片面的线性公式指定代表object块对角矩阵元素的行/列名的可选列表。因为因素可能是在form目前,该公式需要评估数据框,以解决他们定义的名字。时value是一个片面的公式列表,则忽略此参数。 NULL默认。
参数:nam
an optional list of vector of character strings specifying the row/column names for the block-diagonal elements of the matrix represented by object. Each of its components must have length equal to the dimension of the corresponding block-diagonal element and unreplicated elements. This argument is ignored when value is a list of vector of character strings. Defaults to NULL.
字符字符串矢量对象表示矩阵块对角元素中指定的行/列名的可选列表。其组成部分,每个人都必须有长度等于相应的块对角元素和非复制元素的尺寸。时value是一个字符串向量的列表,则忽略此参数。 NULL默认。
参数:data
an optional data frame in which to evaluate the variables named in value and form. It is used to obtain the levels for factors, which affect the dimensions and the row/column names of the underlying matrix. If NULL, no attempt is made to obtain information on factors appearing in the formulas. Defaults to the parent frame from which the function was called.
在其中评估value和form命名的变量的可选数据框。用它来获得factors,这影响的尺寸和基础矩阵的行/列名的水平。如果NULL,没有尝试获得factors公式中出现的信息。默认从该函数被调用的父框架。
参数:pdClass
an optional vector of character strings naming the pdMat classes to be assigned to the individual blocks in the underlying matrix. If a single class is specified, it is used for all block-diagonal elements. This argument will only be used when value is missing, or its elements are not pdMat objects. Defaults to "pdSymm".
可选的向量命名pdMat类被分配到在基础矩阵的各个块的字符字符串。如果指定一个单一的类,它被用于所有块对角线元素。这种说法只会被使用时value缺少,或它的元素是不pdMat对象。 "pdSymm"默认。
参数:...
some methods for this generic require additional arguments. None are used in this method.
这个通用的一些方法需要额外的参数。没有使用这种方法。
值----------Value----------
a pdBlocked object representing a positive-definite block-diagonal matrix, also inheriting from class pdMat.
一个pdBlocked对象代表一个块对角正定矩阵,也继承从类pdMat。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参考文献----------References----------
in S and S-PLUS", Springer.
参见----------See Also----------
as.matrix.pdMat, coef.pdMat, pdBlocked, pdClasses, pdConstruct,
as.matrix.pdMat,coef.pdMat,pdBlocked,pdClasses,pdConstruct
举例----------Examples----------
pd1 <- pdBlocked(list(c("A","B"), c("a1", "a2", "a3")))
pdConstruct(pd1, list(diag(1:2), diag(c(0.1, 0.2, 0.3))))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|