Rev 6562 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File nlme/man/predict.gnls.Rd% Part of the nlme package for R% Distributed under GPL 2 or later: see nlme/LICENCE.note\name{predict.gnls}\title{Predictions from a gnls Object}\usage{\method{predict}{gnls}(object, newdata, na.action, naPattern, \dots)}\alias{predict.gnls}\arguments{\item{object}{an object inheriting from class \code{"\link{gnls}"}, representinga generalized nonlinear least squares fitted model.}\item{newdata}{an optional data frame to be used for obtaining thepredictions. All variables used in the nonlinear model must be presentin the data frame. If missing, the fitted values are returned.}\item{na.action}{a function that indicates what should happen when\code{newdata} contains \code{NA}s. The default action(\code{na.fail}) causes the function to print an error message andterminate if there are any incomplete observations.}\item{naPattern}{an expression or formula object, specifying which returnedvalues are to be regarded as missing.}\item{\dots}{some methods for this generic require additionalarguments. None are used in this method.}}\description{The predictions for the nonlinear model represented by \code{object} areobtained at the covariate values defined in \code{newdata}.}\value{a vector with the predicted values.}\author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}}\seealso{\code{\link{gnls}}}\examples{fm1 <- gnls(weight ~ SSlogis(Time, Asym, xmid, scal), Soybean,weights = varPower())newSoybean <- data.frame(Time = c(10,30,50,80,100))predict(fm1, newSoybean)}\keyword{models}