Rev 6563 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File nlme/man/compareFits.Rd% Part of the nlme package for R% Distributed under GPL 2 or later: see nlme/LICENCE.note\name{compareFits}\title{Compare Fitted Objects}\usage{compareFits(object1, object2, which)}\alias{compareFits}\alias{print.compareFits}\arguments{\item{object1,object2}{data frames, or matrices, with the samerow names, but possibly different column names. These will usuallycorrespond to coefficients from fitted objects with a groupingstructure (e.g. \code{lme} and \code{lmList} objects).}\item{which}{an optional integer or character vector indicating whichcolumns in \code{object1} and \code{object2} are to be used in thereturned object. Defaults to all columns.}}\description{The columns in \code{object1} and \code{object2} are put together inmatrices which allow direct comparison of the individual elements foreach object. Missing columns in either object are replaced by\code{NA}s.}\value{a three-dimensional array, with the third dimension given by the numberof unique column names in either \code{object1} or \code{object2}. Toeach column name there corresponds a matrix with as many rows as therows in \code{object1} and two columns, corresponding to \code{object1}and \code{object2}. The returned object inherits from class\code{compareFits}.}\author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}}\seealso{\code{\link{plot.compareFits}},\code{\link{pairs.compareFits}},\code{\link{comparePred}},\code{\link{coef}},\code{\link{random.effects}}}\examples{% don't change lightly -- now called from other examples!fm1 <- lmList(Orthodont)fm2 <- lme(fm1)(cF12 <- compareFits(coef(fm1), coef(fm2)))}\keyword{models}