Rev 6562 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File nlme/man/varPower.Rd% Part of the nlme package for R% Distributed under GPL 2 or later: see nlme/LICENCE.note\name{varPower}\title{Power Variance Function}\usage{varPower(value, form, fixed)}\alias{varPower}\arguments{\item{value}{an optional numeric vector, or list of numeric values,with the variance function coefficients. \code{Value} must havelength one, unless a grouping factor is specified in \code{form}.If \code{value} has length greater than one, it must have nameswhich identify its elements to the levels of the grouping factordefined in \code{form}. If a grouping factor is present in\code{form} and \code{value} has length one, its value will beassigned to all grouping levels. Default is \code{numeric(0)}, whichresults in a vector of zeros of appropriate length being assigned tothe coefficients when \code{object} is initialized (correspondingto constant variance equal to one).}\item{form}{an optional one-sided formula of the form \code{~ v}, or\code{~ v | g}, specifying a variance covariate \code{v} and,optionally, a grouping factor \code{g} for the coefficients. Thevariance covariate must evaluate to a numeric vector and may involveexpressions using \code{"."}, representing a fitted model objectfrom which fitted values (\code{fitted(.)}) and residuals(\code{resid(.)}) can be extracted (this allows the variancecovariate to be updated during the optimization of an objectfunction). When a grouping factor is present in \code{form},a different coefficient value is used for each of itslevels. Several grouping variables may besimultaneously specified, separated by the \code{*} operator, likein \code{~ v | g1 * g2 * g3}. In this case, the levels of eachgrouping variable are pasted together and the resulting factor isused to group the observations. Defaults to \code{~ fitted(.)}representing a variance covariate given by the fitted values of afitted model object and no grouping factor. }\item{fixed}{an optional numeric vector, or list of numeric values,specifying the values at which some or all of the coefficients inthe variance function should be fixed. If a grouping factor isspecified in \code{form}, \code{fixed} must have names identifyingwhich coefficients are to be fixed. Coefficients included in\code{fixed} are not allowed to vary during the optimization of anobjective function. Defaults to \code{NULL}, corresponding to nofixed coefficients.}}\description{This function is a constructor for the \code{varPower} class,representing a power variance function structure. Letting\eqn{v} denote the variance covariate and \eqn{\sigma^2(v)}{s2(v)}denote the variance function evaluated at \eqn{v}, the powervariance function is defined as \eqn{\sigma^2(v) = |v|^{2\theta}}{s2(v) =|v|^(2*t)}, where \eqn{\theta}{t} is the variancefunction coefficient. When a grouping factor is present, a different\eqn{\theta}{t} is used for each factor level.}\value{a \code{varPower} object representing a power variance functionstructure, also inheriting from class \code{varFunc}.}\references{Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Modelsin S and S-PLUS", Springer.}\author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}}\seealso{\code{\link{varWeights.varFunc}},\code{\link{coef.varPower}}}\examples{vf1 <- varPower(0.2, form = ~age|Sex)}\keyword{models}