\HeaderA{as.matrix.reStruct}{Matrices of an reStruct Object}{as.matrix.reStruct}
\keyword{models}{as.matrix.reStruct}
\begin{Description}\relax
This method function extracts the positive-definite matrices
corresponding to the \code{pdMat} elements of \code{object}.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'reStruct':
as.matrix(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] an object inheriting from class \code{reStruct}, representing
a random effects structure and consisting of a list of \code{pdMat}
objects.
\end{ldescription}
\end{Arguments}
\begin{Value}
a list with components given by the positive-definite matrices
corresponding to the elements of \code{object}.
\end{Value}
\begin{Author}\relax
Jose Pinheiro \email{Jose.Pinheiro@pharma.novartis.com} and Douglas Bates \email{bates@stat.wisc.edu}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{as.matrix.pdMat}{as.matrix.pdMat}}, \code{\LinkA{reStruct}{reStruct}},
\code{\LinkA{pdMat}{pdMat}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
rs1 <- reStruct(pdSymm(diag(3), ~age+Sex, data = Orthodont))
as.matrix(rs1)
\end{ExampleCode}
\end{Examples}

