Rev 6563 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File nlme/man/varIdent.Rd% Part of the nlme package for R% Distributed under GPL 2 or later: see nlme/LICENCE.note\name{varIdent}\title{Constant Variance Function}\usage{varIdent(value, form, fixed)}\alias{varIdent}\arguments{\item{value}{an optional numeric vector, or list of numeric values,with the variance function coefficients. If no grouping factor ispresent in \code{form}, this argument is ignored, as the resultingvariance function contains no coefficients. If \code{value} haslength one, its value is repeated for all coefficients in thevariance function. If \code{value} has length greater than one, itmust have length equal to the number of grouping levels minus oneand names which identify its elements to the levels of the groupingfactor. Only positive values are allowed for this argument. Defaultis \code{numeric(0)}, which results in a vector of zeros ofappropriate length being assigned to the coefficients when\code{object} is initialized (corresponding to constant varianceequal 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 is ignored in this variance function. When agrouping factor is present in \code{form}, a different coefficientvalue is used for each of its levels less one reference level.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{~ 1}. }\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. It must have namesidentifying which coefficients are to be fixed. Coefficientsincluded in \code{fixed} are not allowed to vary during theoptimization of an objective function. Defaults to \code{NULL},corresponding to no fixed coefficients.}}\description{This function is a constructor for the \code{varIdent} class,representing a constant variance function structure. If no groupingfactor is present in \code{form}, the variance function is constantand equal to one, and no coefficients required to represent it. When\code{form} includes a grouping factor with \eqn{M > 1} levels, thevariance function allows M different variances, one for each level ofthe factor. For identifiability reasons, the coefficients of thevariance function represent the ratios between the variances and areference variance (corresponding to a reference grouplevel). Therefore, only \eqn{M-1} coefficients are needed to representthe variance function. By default, if the elements in \code{value} areunnamed, the first group level is taken as the reference level.}\value{a \code{varIdent} object representing a constant 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{varClasses}},\code{\link{varWeights.varFunc}},\code{\link{coef.varIdent}}}\examples{vf1 <- varIdent(c(Female = 0.5), form = ~ 1 | Sex)}\keyword{models}