Rev 6562 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File nlme/man/pdBlocked.Rd% Part of the nlme package for R% Distributed under GPL 2 or later: see nlme/LICENCE.note\name{pdBlocked}\title{Positive-Definite Block Diagonal Matrix}\usage{pdBlocked(value, form, nam, data, pdClass)}\alias{pdBlocked}\arguments{\item{value}{an optional list with elements to be used as the\code{value} argument to other \code{pdMat} constructors. Theseinclude: \code{pdMat} objects, positive-definitematrices, one-sided linear formulas, vectors of character strings, ornumeric vectors. All elements in the list must be similar (e.g. allone-sided formulas, or all numeric vectors). Defaults to\code{numeric(0)}, corresponding to an uninitialized object.}\item{form}{an optional list of one-sided linear formulas specifying therow/column names for the block-diagonal elements of the matrixrepresented by \code{object}. Because factors may be present in\code{form}, the formulas needs to be evaluated on a data.frame toresolve the names they define. This argument is ignored when\code{value} is a list of one-sided formulas. Defaults to \code{NULL}.}\item{nam}{an optional list of vector of character strings specifying therow/column names for the block-diagonal elements of the matrixrepresented by object. Each of its components must havelength equal to the dimension of the corresponding block-diagonalelement and unreplicated elements. This argument is ignored when\code{value} is a list of vector of character strings. Defaults to\code{NULL}.}\item{data}{an optional data frame in which to evaluate the variablesnamed in \code{value} and \code{form}. It is used toobtain the levels for \code{factors}, which affect thedimensions and the row/column names of the underlying matrix. If\code{NULL}, no attempt is made to obtain information on any\code{factors} appearing in the formulas. Defaults to the parentframe from which the function was called.}\item{pdClass}{an optional vector of character strings naming the\code{pdMat} classes to be assigned to the individual blocks in theunderlying matrix. If a single class is specified, it is used for allblock-diagonal elements. This argument will only be used when\code{value} is missing, or its elements are not \code{pdMat}objects. Defaults to \code{"pdSymm"}.}}\description{This function is a constructor for the \code{pdBlocked} class,representing a positive-definite block-diagonal matrix. Eachblock-diagonal element of the underlying matrix is itself apositive-definite matrix and is represented internally as anindividual \code{pdMat} object. When \code{value} is\code{numeric(0)}, a list of uninitialized \code{pdMat} objects, alist of one-sided formulas, or a list of vectorsof character strings, \code{object} is returnedas an uninitialized \code{pdBlocked} object (with just some of itsattributes and its class defined) and needs to have its coefficientsassigned later, generally using the \code{coef} or \code{matrix} replacementfunctions. If \code{value} is a list of initialized \code{pdMat}objects, \code{object} will be constructed from the list obtained byapplying \code{as.matrix} to each of the \code{pdMat} elements of\code{value}. Finally, if \code{value} is a list of numeric vectors,they are assumed to represent the unrestricted coefficientsof the block-diagonal elements of the underlying positive-definitematrix.}\value{a \code{pdBlocked} object representing a positive-definiteblock-diagonal matrix, also inheriting from class \code{pdMat}.}\references{Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Modelsin S and S-PLUS", Springer, esp. p. 162.}\author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}}\seealso{\code{\link{as.matrix.pdMat}},\code{\link{coef.pdMat}},\code{\link{pdClasses}},\code{\link{matrix<-.pdMat}}}\examples{pd1 <- pdBlocked(list(diag(1:2), diag(c(0.1, 0.2, 0.3))),nam = list(c("A","B"), c("a1", "a2", "a3")))pd1}\keyword{models}