Mixed-Effects Models in S and S-PLUS
Publisher page (DOI)OpenAlex record
Audit status
Not applicableEvidence superseded during the rulemaking
Not applicableRecorded replication attempts
Waiting on full textCited numbers found in the paper
Waiting on full textReplication package or data link
Waiting on full textReported p-values match test statistics
Waiting on full textTrial or pre-registration
PassStudy design and audit routing (Jev) ▸
{
"design": "theory",
"design_conf": 0.64,
"original_estimates": 0.24,
"human_trial": 0.01,
"inferential_stats": 0.87,
"had_abstract": false,
"model": "jev-1.14.0",
"tokens": 640,
"routes": [
"statcheck"
]
}Planned6 more checks not built yet ▸
Cited in 33 places in policy documents
Bates (2010) lme4: Mixed-effects modeling with R, Manual
Pinheiro & Bates (2000, Sect. 2.5)
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. pp. 235, 397. See Also
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. pp. 233-234. See Also corClasses, Initialize.corStruct, summary.corStruct corExp Examples ## covariate is observation order and grouping factor is Subject cs1 <- corCompSymm(0.5, form = ~ 1 | Subject) # Pinheiro and Bates, pp. 222-225 fm1BW.lme <- lme(weight ~ Time * Diet, BodyWeight, random = ~ Time) # p. 223 fm2BW.lme <- update(fm1BW.lme, weights = varPower()) # p. 225 cs1CompSymm <- corCompSymm(value = 0.3, form = ~ 1 | Subject) cs2CompSymm <- corCompSymm(value = 0.3, form = ~ age | Subject) cs1CompSymm <- Initialize(cs1CompSymm, data = Orthodont) corMatrix(cs1CompSymm) corExp Exponential Correlation Structure Description This function is a constructor for the "corExp" class, representing an exponential spatial correlation structure. Letting d denote the range and n denote the nugget effect, the correlation between two observations a distance r apart is exp(−r/d) when no nugget effect is present and (1 − n) exp(−r/d) when a nugget effect is assumed. Objects created using this constructor must later be initialized using the appropriate Initialize method. Usage corExp(value, form, nugget, metric, fixed) Arguments value an optional vector with the parameter values in constrained form. If nugget is
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also Initialize.corStruct, summary.corStruct, dist Examples sp1 <- corGaus(form = ~ x + y + z) # example lme(..., corGaus ...) # Pinheiro and Bates, pp. 222-249 fm1BW.lme <- lme(weight ~ Time * Diet, BodyWeight, random = ~ Time) # p. 223 fm2BW.lme <- update(fm1BW.lme, weights = varPower()) # p 246 fm3BW.lme <- update(fm2BW.lme, correlation = corExp(form = ~ Time)) # p. 249 fm8BW.lme <- update(fm3BW.lme, correlation = corGaus(form = ~ Time)) corLin corLin Linear Correlation Structure Description This function is a constructor for the corLin class, representing a linear spatial correlation structure. Letting d denote the range and n denote the nugget effect, the correlation between two observations a distance r < d apart is 1 − (r/d) when no nugget effect is present and (1 − n)(1 − (r/d)) when a nugget effect is assumed. If r ≥ d the correlation is zero. Objects created using this constructor must later be initialized using the appropriate Initialize method. Usage corLin(value, form, nugget, metric, fixed) Arguments value an optional vector with the parameter values in constrained form. If nugget is
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. sec. 3.4. See Also gsummary Gasoline Examples ## Find number of non-missing "conc" observations for each Subject gapply( Phenobarb, FUN = function(x) sum(!is.na(x$conc)) ) # Pinheiro and Bates, p. 127 table( gapply(Quinidine, "conc", function(x) sum(!is.na(x))) ) changeRecords <- gapply( Quinidine, FUN = function(frm) any(is.na(frm[["conc"]]) & is.na(frm[["dose"]])) ) Gasoline Refinery yield of gasoline Description The Gasoline data frame has 32 rows and 6 columns. Format This data frame contains the following columns: yield a numeric vector giving the percentage of crude oil converted to gasoline after distillation and fractionation endpoint a numeric vector giving the temperature (degrees F) at which all the gasoline is vaporized Sample an ordered factor giving the inferred crude oil sample number
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. p. 100. See Also getCovariate.corStruct, getCovariate.data.frame, getCovariate.varFunc, getCovariateFormula Examples ## see the method function documentation getCovariate.corStruct getCovariate.corStruct Extract corStruct Object Covariate Description This method function extracts the covariate(s) associated with object. Usage ## S3 method for class 'corStruct' getCovariate(object, form, data) Arguments object an object inheriting from class corStruct representing a correlation structure. form this argument is included to make the method function compatible with the generic. It will be assigned the value of formula(object) and should not be modified. data an optional data frame in which to evaluate the variables defined in form, in case object is not initialized and the covariate needs to be evaluated. Value when the correlation structure does not include a grouping factor, the returned value will be a vector or a matrix with the covariate(s) associated with object. If a grouping factor is present, the returned value will be a list of vectors or matrices with the covariate(s) corresponding to each grouping level. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. pp. 100, 461.
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. gsummary See Also formula, gapply, gsummary, lme, plot.nffGroupedData, plot.nfnGroupedData, plot.nmGroupedData, reStruct Examples Orth.new <- # create a new copy of the groupedData object groupedData( distance ~ age | Subject, data = as.data.frame( Orthodont ),
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also summary, groupedData, getGroups Examples gsummary(Orthodont) # default summary by Subject ## gsummary with invariantsOnly = TRUE and omitGroupingFactor = TRUE ## determines whether there are covariates like Sex that are invariant ## within the repeated observations on the same Subject. gsummary(Orthodont, inv = TRUE, omit = TRUE) Methods for firing naval guns Description The Gun data frame has 36 rows and 4 columns. Format This data frame contains the following columns: rounds a numeric vector Method a factor with levels M1 M2 Team an ordered factor with levels T1S < T3S < T2S < T1A < T2A < T3A < T1H < T3H < T2H Physique an ordered factor with levels Slight < Average < Heavy Details Hicks (p.180, 1993) reports data from an experiment on methods for firing naval guns. Gunners of three different physiques (slight, average, and heavy) tested two firing methods. Both methods were tested twice by each of nine teams of three gunners with identical physique. The response was the number of rounds fired per minute. Source
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also Initialize.corStruct, Initialize.lmeStruct, Initialize.glsStruct, Initialize.varFunc, isInitialized Examples ## see the method function documentation Initialize.corStruct Initialize corStruct Object Description This method initializes object by evaluating its associated covariate(s) and grouping factor, if any is present, in data, calculating various dimensions and constants used by optimization algorithms involving corStruct objects (see the appropriate Dim method documentation), and assigning initial values for the coefficients in object, if none were present. Usage ## S3 method for class 'corStruct' Initialize(object, data, ...) Initialize.glsStruct Arguments object data an object inheriting from class "corStruct" representing a correlation structure. a data frame in which to evaluate the variables defined in formula(object). this argument is included to make this method compatible with the generic. Value an initialized object with the same class as object representing a correlation structure. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer.
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. p. 162. See Also as.matrix.pdMat, coef.pdMat, pdClasses, matrix<-.pdMat Examples pd1 <- pdBlocked(list(diag(1:2), diag(c(0.1, 0.2, 0.3))), nam = list(c("A","B"), c("a1", "a2", "a3"))) pdClasses pdClasses Positive-Definite Matrix Classes Description Standard classes of positive-definite matrices (pdMat) structures available in the nlme package. Value Available standard classes: pdSymm general positive-definite matrix, with no additional structure pdLogChol general positive-definite matrix, with no additional structure, using a log-Cholesky parameterization pdDiag diagonal pdIdent multiple of an identity pdCompSymm compound symmetry structure (constant diagonal and constant off-diagonal elements) pdBlocked block-diagonal matrix, with diagonal blocks of any "atomic" pdMat class pdNatural general positive-definite matrix in natural parametrization (i.e. parametrized in terms of standard deviations and correlations). The underlying coefficients are not unrestricted, so this class should NOT be used for optimization. Note Users may define their own pdMat classes by specifying a constructor function and, at a minimum, methods for the functions pdConstruct, pdMatrix and coef. For examples of these functions, see the methods for classes pdSymm and pdDiag. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also as.matrix.pdMat, coef.pdMat, pdBlocked, pdClasses, pdConstruct, matrix<-.pdMat Examples pd1 <- pdBlocked(list(c("A","B"), c("a1", "a2", "a3"))) pdConstruct(pd1, list(diag(1:2), diag(c(0.1, 0.2, 0.3)))) pdDiag pdDiag Diagonal Positive-Definite Matrix Description This function is a constructor for the pdDiag class, representing a diagonal positive-definite matrix. If the matrix associated with object is of dimension n, it is represented by n unrestricted parameters, given by the logarithm of the square-root of the diagonal values. When value is numeric(0), an uninitialized pdMat object, a one-sided formula, or a vector of character strings, object is returned as an uninitialized pdDiag object (with just some of its attributes and its class defined) and needs to have its coefficients assigned later, generally using the coef or matrix replacement functions. If value is an initialized pdMat object, object will be constructed from as.matrix(value).
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also as.matrix.pdMat, coef.pdMat, pdClasses, matrix<-.pdMat Examples pd1 <- pdDiag(diag(1:3), nam = c("A","B","C")) pdFactor Square-Root Factor of a Positive-Definite Matrix Description A square-root factor of the positive-definite matrix represented by object is obtained. Letting Σ denote a positive-definite matrix, a square-root factor of Σ is any square matrix L such that Σ = L0 L. This function extracts L. Usage pdFactor(object) Arguments object an object inheriting from class pdMat, representing a positive definite matrix, which must have been initialized (i.e. length(coef(object)) > 0). Value a vector with a square-root factor of the positive-definite matrix associated with object stacked column-wise. Note This function is used intensively in optimization algorithms and its value is returned as a vector for efficiency reasons. The pdMatrix function can be used to obtain square-root factors in matrix form. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. pdFactor.reStruct See Also pdMatrix Examples pd1 <- pdCompSymm(4 * diag(3) + 1) pdFactor(pd1) pdFactor.reStruct Extract Square-Root Factor from Components of an reStruct Object Description This method function extracts square-root factors of the positive-definite matrices corresponding to the pdMat elements of object. Usage ## S3 method for class 'reStruct' pdFactor(object) Arguments object an object inheriting from class "reStruct", representing a random effects structure and consisting of a list of pdMat objects. Value a vector with square-root factors of the positive-definite matrices corresponding to the elements of object stacked column-wise. Note This function is used intensively in optimization algorithms and its value is returned as a vector for efficiency reasons. The pdMatrix function can be used to obtain square-root factors in matrix form. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also pdClasses, pdCompSymm, pdDiag, pdIdent, pdNatural, pdSymm, reStruct, solve.pdMat, summary.pdMat Examples pd1 <- pdMat(diag(1:4), pdClass = "pdDiag") pdMatrix Extract Matrix or Square-Root Factor from a pdMat Object Description The positive-definite matrix represented by object, or a square-root factor of it is obtained. Letting Σ denote a positive-definite matrix, a square-root factor of Σ is any square matrix L such that Σ = L0 L. This function extracts S or L. Usage pdMatrix(object, factor) Arguments object an object inheriting from class pdMat, representing a positive definite matrix. factor an optional logical value. If TRUE, a square-root factor of the positive-definite matrix represented by object is returned; else, if FALSE, the positive-definite matrix is returned. Defaults to FALSE. Value if fact is FALSE the positive-definite matrix represented by object is returned; else a square-root of the positive-definite matrix is returned. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. p. 162. pdMatrix.reStruct See Also as.matrix.pdMat, pdClasses, pdFactor, pdMat, pdMatrix.reStruct, corMatrix Examples pd1 <- pdSymm(diag(1:4)) pdMatrix(pd1) pdMatrix.reStruct Extract Matrix or Square-Root Factor from Components of an reStruct Object Description This method function extracts the positive-definite matrices corresponding to the pdMat elements of object, or square-root factors of the positive-definite matrices. Usage ## S3 method for class 'reStruct' pdMatrix(object, factor) Arguments object an object inheriting from class "reStruct", representing a random effects structure and consisting of a list of pdMat objects. factor an optional logical value. If TRUE, square-root factors of the positive-definite matrices represented by the elements of object are returned; else, if FALSE, the positive-definite matrices are returned. Defaults to FALSE. Value a list with components given by the positive-definite matrices corresponding to the elements of object, or square-root factors of the positive-definite matrices. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. p. 162. See Also as.matrix.reStruct, reStruct, pdMat, pdMatrix, pdMatrix.pdMat pdNatural Examples rs1 <- reStruct(pdSymm(diag(3), ~age+Sex, data = Orthodont)) pdMatrix(rs1) pdNatural General Positive-Definite Matrix in Natural Parametrization Description This function is a constructor for the pdNatural class, representing a general positive-definite matrix, using a natural parametrization . If the matrix associated with object is of dimension n, it is represented by n(n + 1)/2 parameters. Letting σij denote the ij-th element of the underlying posi√ tive definite matrix and ρij = σi / σii σjj , i 6= j denote the associated "correlations", the "natural" parameters are given by σii , i = 1, . . . , n and log((1 + ρij )/(1 − ρij )), i 6= j. Note that all natural parameters are individually unrestricted, but not jointly unrestricted (meaning that not all unrestricted vectors would give positive-definite matrices). Therefore, this parametrization should
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also as.matrix.pdMat, coef.pdMat, pdClasses, matrix<-.pdMat Examples pd1 <- pdSymm(diag(1:3), nam = c("A","B","C")) Phenobarb Phenobarb Phenobarbitol Kinetics Description The Phenobarb data frame has 744 rows and 7 columns. Format This data frame contains the following columns: Subject an ordered factor identifying the infant. Wt a numeric vector giving the birth weight of the infant (kg). Apgar an ordered factor giving the 5-minute Apgar score for the infant. This is an indication of health of the newborn infant. ApgarInd a factor indicating whether the 5-minute Apgar score is < 5 or >= 5. time a numeric vector giving the time when the sample is drawn or drug administered (hr). dose a numeric vector giving the dose of drug administered (ug/kg). conc a numeric vector giving the phenobarbital concentration in the serum (ug/L). Details Data from a pharmacokinetics study of phenobarbital in neonatal infants. During the first few days of life the infants receive multiple doses of phenobarbital for prevention of seizures. At irregular intervals blood samples are drawn and serum phenobarbital concentrations are determined. The data were originally given in Grasela and Donn(1985) and are analyzed in Boeckmann, Sheiner and Beal (1994), in Davidian and Giltinan (1995), and in Littell et al. (1996). Source
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. pp. 100, 461. See Also ranef.lmList,ranef.lme Examples ## see the method function documentation ranef.lme Extract lme Random Effects Description The estimated random effects at level i are represented as a data frame with rows given by the different groups at that level and columns given by the random effects. If a single level of grouping is specified, the returned object is a data frame; else, the returned object is a list of such data frames.
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. pp. 100, 461. See Also coef.lme, gsummary, lme, plot.ranef.lme, random.effects Examples fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject) ranef(fm1) random.effects(fm1) # same as above random.effects(fm1, augFrame = TRUE) ranef.lmList Extract lmList Random Effects Description The difference between the individual lm components coefficients and their average is calculated. Usage ## S3 method for class 'lmList' ranef(object, augFrame, data, which, FUN, standard, omitGroupingFactor, ...) Arguments object an object inheriting from class "lmList", representing a list of lm objects with a common model. augFrame an optional logical value. If TRUE, the returned data frame is augmented with variables defined in data; else, if FALSE, only the coefficients are returned. Defaults to FALSE. data an optional data frame with the variables to be used for augmenting the returned data frame when augFrame =
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. pp. 100, 461. See Also fixed.effects.lmList, lmList, random.effects Examples fm1 <- lmList(distance ~ age | Subject, Orthodont) ranef(fm1) random.effects(fm1) # same as above RatPupWeight RatPupWeight The weight of rat pups Description The RatPupWeight data frame has 322 rows and 5 columns. Format This data frame contains the following columns: weight a numeric vector sex a factor with levels Male Female Litter an ordered factor with levels 9 < 8 < 7 < 4 < 2 < 10 < 1 < 3 < 5 < 6 < 21 < 22 < 24 < 27 < 26 < 25 < 23 < 17 < 11 < 14 < 13 < 15 < 16 < 20 < 19 < 18 < 12 Lsize a numeric vector Treatment an ordered factor with levels Control < Low < High Source
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also varComb, varConstPower, varExp, varFixed, varIdent, varPower, summary.varFunc varComb varComb Combination of Variance Functions Description This function is a constructor for the varComb class, representing a combination of variance functions. The corresponding variance function is equal to the product of the variance functions of the varFunc objects listed in .... Usage varComb(...) Arguments objects inheriting from class varFunc representing variance function structures. Value a varComb object representing a combination of variance functions, also inheriting from class varFunc. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also varClasses, varWeights.varFunc, coef.varExp Examples vf1 <- varExp(0.2, form = ~age|Sex) varFixed varFixed Fixed Variance Function Description This function is a constructor for the varFixed class, representing a variance function with fixed variances. Letting v denote the variance covariate defined in value, the variance function σ 2 (v) for this class is σ 2 (v) = |v|. The variance covariate v is evaluated once at initialization and remains fixed thereafter. No coefficients are required to represent this variance function. Usage varFixed(value) Arguments value a one-sided formula of the form ~ v specifying a variance covariate v. Grouping factors are ignored. Value a varFixed object representing a fixed variance function structure, also inheriting from class varFunc. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also varClasses, varWeights.varFunc, coef.varIdent Variogram Examples vf1 <- varIdent(c(Female = 0.5), form = ~ 1 | Sex) Variogram Calculate Semi-variogram Description This function is generic; method functions can be written to handle specific classes of objects. Classes which already have methods for this function include default, gls and lme. See the appropriate method documentation for a description of the arguments. Usage Variogram(object, distance, ...) Arguments object a numeric vector with the values to be used for calculating the semi-variogram, usually a residual vector from a fitted model. distance a numeric vector with the pairwise distances corresponding to the elements of object. The order of the elements in distance must correspond to the pairs (1,2), (1,3), ..., (n-1,n), with n representing the length of object, and must have length n(n-1)/2. some methods for this generic function require additional arguments. Value will depend on the method function used; see the appropriate documentation. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also varWeights.varFunc, coef.varPower Examples vf1 <- varPower(0.2, form = ~age|Sex) varWeights Extract Variance Function Weights Description The inverse of the standard deviations corresponding to the variance function structure represented by object are returned. Usage varWeights(object) Arguments object an object inheriting from class varFunc, representing a variance function structure. Value if object has a weights attribute, its value is returned; else NULL is returned. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also logLik.varFunc, varWeights varWeights.glsStruct Examples vf1 <- varPower(form=~age) vf1 <- Initialize(vf1, Orthodont) coef(vf1) <- 0.3 varWeights(vf1)[1:10] varWeights.glsStruct Variance Weights for glsStruct Object Description If object includes a varStruct component, the inverse of the standard deviations of the variance function structure represented by the corresponding varFunc object are returned; else, a vector of ones of length equal to the number of observations in the data frame used to fit the associated linear model is returned. Usage ## S3 method for class 'glsStruct' varWeights(object) Arguments object an object inheriting from class "glsStruct", representing a list of linear model components, such as corStruct and "varFunc" objects. Value if object includes a varStruct component, a vector with the corresponding variance weights; else, or a vector of ones. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also varWeights varWeights.lmeStruct varWeights.lmeStruct Variance Weights for lmeStruct Object Description If object includes a varStruct component, the inverse of the standard deviations of the variance function structure represented by the corresponding varFunc object are returned; else, a vector of ones of length equal to the number of observations in the data frame used to fit the associated linear mixed-effects model is returned. Usage ## S3 method for class 'lmeStruct' varWeights(object) Arguments object an object inheriting from class "lmeStruct", representing a list of linear mixedeffects model components, such as reStruct, corStruct, and varFunc objects. Value if object includes a varStruct component, a vector with the corresponding variance weights; else, or a vector of ones. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Pinheiro, et al. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-128. Retrieved from: http://CRAN.R-project.org/package=nlme
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer. See Also varWeights Wafer Wafer Modeling of Analog MOS Circuits Description The Wafer data frame has 400 rows and 4 columns. Format This data frame contains the following columns: Wafer a factor with levels 1 2 3 4 5 6 7 8 9 10 Site a factor with levels 1 2 3 4 5 6 7 8 voltage a numeric vector current a numeric vector Source
EPA Stressor Response 2010
Pinheiro, J. C. and D. M. Bates. 2000. Mixed-Effects Models in S and S-Plus. Springer. New York, NY.
Using Stressor-Response Relationships to Derive Numeric Nutrient Criteria [EPA-820-S-10-001] [DCN 1-1213]
Pinheiro, J. C. and D. M. Bates. 2000. Mixed-Effects Models in S and S-Plus. Springer. New York, NY.
USEPA 2010, Using Stressor-Response Relationships to Derive Numeric Nutrient Criteria [EPA-820-S-10-001]
Pinheiro, J. C. and D. M. Bates. 2000. Mixed-Effects Models in S and S-Plus. Springer. New York, NY.