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
Other documents for the same rulemaking
References: 106 extracted, 29 linked to papers
Bates, D.M. and Pinheiro, J.C. (1997), "Software Design for Longitudinal Data", in "Modelling Longitudinal and Spatially Correlated Data: Methods, Applications and Future Directions", T.G. Gregoire (ed.), Springer-Verlag, New York.
Pinheiro, J.C. and Bates, D.M. (1997) "Future Directions in Mixed-Effects Software: Design of
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, 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
R. (1993), Fundamental Concepts in the Design of Experiments (4th ed), Harcourt Brace, New York. Radioimmunoassay of IGF-I Protein Description The IGF data frame has 237 rows and 3 columns. Format This data frame contains the following columns: Lot an ordered factor giving the radioactive tracer lot. age a numeric vector giving the age (in days) of the radioactive tracer. conc a numeric vector giving the estimated concentration of IGF-I protein (ng/ml) Details Davidian and Giltinan (1995) describe data obtained during quality control radioimmunoassays for ten different lots of radioactive tracer used to calibrate the Insulin-like Growth Factor (IGF-I) protein concentration measurements. Source
M. (1995), Nonlinear Models for Repeated Measurement Data, Chapman and Hall, London.
M. (2000), Mixed-Effects Models in S and S-PLUS, Springer, New York. (Appendix A.11) Initialize Initialize Object 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: corStruct, lmeStruct, reStruct, and varFunc. Usage Initialize(object, data, ...) Initialize.corStruct Arguments object any object requiring initialization, e.g. "plug-in" structures such as corStruct and varFunc objects. data a data frame to be used in the initialization procedure. some methods for this generic function require additional arguments. Value an initialized object with the same class as object. Changes introduced by the initialization procedure will depend on the method function used; see the appropriate documentation. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
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
Box, G.E.P., Jenkins, G.M., and Reinsel G.C. (1994) "Time Series Analysis: Forecasting and Control", 3rd Edition, Holden–Day.
Laird, N.M. and Ware, J.H. (1982) "Random-Effects Models for Longitudinal Data", Biometrics, 38, 963–974.
Lindstrom, M.J. and Bates, D.M. (1988) "Newton-Raphson and EM Algorithms for Linear MixedEffects Models for Repeated-Measures Data", Journal of the American Statistical Association, 83, 1014–1022.
Littel, R.C., Milliken, G.A., Stroup, W.W., and Wolfinger, R.D. (1996) "SAS Systems for Mixed Models", SAS Institute. lme.groupedData
Pinheiro, J.C. and Bates., D.M. (1996) "Unconstrained Parametrizations for Variance-Covariance Matrices", Statistics and Computing, 6, 289–296.
Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer.
Venables, W.N. and Ripley, B.D. (2002) "Modern Applied Statistics with S", 4th Edition, SpringerVerlag. See Also corClasses, lme.lmList, lme.groupedData, lmeControl, lmeObject, lmeStruct, lmList, pdClasses, plot.lme, predict.lme, qqnorm.lme, residuals.lme, reStruct, simulate.lme, summary.lme, varClasses, varFunc Examples fm1 <- lme(distance ~ age, data = Orthodont) # random is ~ age fm2 <- lme(distance ~ age + Sex, data = Orthodont, random = ~ 1) summary(fm1) summary(fm2) lme.groupedData
Laird, N.M. and Ware, J.H. (1982) "Random-Effects Models for Longitudinal Data", Biometrics, 38, 963-974.
Lindstrom, M.J. and Bates, D.M. (1988) "Newton-Raphson and EM Algorithms for Linear MixedEffects Models for Repeated-Measures Data", Journal of the American Statistical Association, 83, 1014-1022.
Venables, W.N. and Ripley, B.D. (2002) "Modern Applied Statistics with S", 4th Edition, SpringerVerlag. See Also lme, groupedData, lmeObject Examples fm1 <- lme(Orthodont) summary(fm1) lme.lmList
Harville, D.A. (1974) “Bayesian Inference for Variance Components Using Only Error Contrasts”,
Lindstrom, M.J. and Bates, D.M. (1990) "Nonlinear Mixed Effects Models for Repeated Measures Data", Biometrics, 46, 673-687.
Venables, W.N. and Ripley, B.D. (2002) "Modern Applied Statistics with S", 4th Edition, SpringerVerlag. See Also nlmeControl, nlme.nlsList, nlmeObject, nlsList, nlmeStruct, pdClasses, reStruct, varFunc, corClasses, varClasses nlme.nlsList Examples fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc), data = Loblolly, fixed = Asym + R0 + lrc ~ 1, random = Asym ~ 1, start = c(Asym = 103, R0 = -8.5, lrc = -3.3)) summary(fm1) fm2 <- update(fm1, random = pdDiag(Asym + lrc ~ 1)) summary(fm2) nlme.nlsList
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, 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, 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, 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, J.C. and Bates., D.M. (1996) Unconstrained Parametrizations for Variance-Covariance
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, 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, 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, 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
M. (2000), Mixed-Effects Models in S and S-PLUS, Springer, New York. (Appendix A.23)
M. (1995), Nonlinear Models for Repeated Measurement Data, Chapman and Hall, London. (section 6.6) Grasela and Donn (1985), Neonatal population pharmacokinetics of phenobarbital derived from routine clinical data, Developmental Pharmacology and Therapeutics, 8, 374-383.
L. (1994), NONMEM Users Guide: Part V, University of California, San Francisco.
D. (1996), SAS System for Mixed
M. (2000) Mixed-effects Models in S and S-PLUS, Springer. (section 6.4) Pixel Pixel X-ray pixel intensities over time Description The Pixel data frame has 102 rows and 4 columns of data on the pixel intensities of CT scans of dogs over time Format This data frame contains the following columns: Dog a factor with levels 1 to 10 designating the dog on which the scan was made Side a factor with levels L and R designating the side of the dog being scanned day a numeric vector giving the day post injection of the contrast on which the scan was made pixel a numeric vector of pixel intensities Source
M. (2000) Mixed-effects Models in S and S-PLUS, Springer. Examples fm1 <- lme(pixel ~ day + I(day^2), data = Pixel, random = list(Dog = ~ day, Side = ~ 1)) summary(fm1) VarCorr(fm1) plot.ACF Plot an ACF Object Description an xyplot of the autocorrelations versus the lags, with type = "h", is produced. If alpha > 0, curves representing the critical limits for a two-sided test of level alpha for the autocorrelations are added to the plot. Usage ## S3 method for class 'ACF' plot(x, alpha, xlab, ylab, grid, ...) plot.augPred Arguments an object inheriting from class ACF, consisting of a data frame with two columns named lag and ACF, representing the autocorrelation values and the corresponding lags. alpha an optional numeric value with the significance level for testing if the autocorrelations are zero. Lines corresponding to the lower and upper critical values for a test of level alpha are added to the plot. Default is 0, in which case no lines are plotted. xlab,ylab optional character strings with the x- and y-axis labels. Default respectively to "Lag" and "Autocorrelation". grid an optional logical value indicating whether a grid should be added to plot. Default is FALSE. optional arguments passed to the xyplot function. Value an xyplot Trellis plot. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> See Also
Bates, D.M. and Pinheiro, J.C. (1997), "Software Design for Longitudinal Data", in "Modelling Longitudinal and Spatially Correlated Data: Methods, Applications and Future Directions", T.G. Gregoire (ed.), Springer-Verlag, New York. See Also groupedData, dotplot Examples plot(Machines) plot(Machines, inner = TRUE) plot.nfnGroupedData Plot an nfnGroupedData Object Description A Trellis plot of the response versus the primary covariate is generated. If outer variables are specified, the combination of their levels are used to determine the panels of the Trellis display.
M. (2000) Mixed-effects Models in S and S-PLUS, Springer. (section 8.2) Rail Evaluation of Stress in Railway Rails Description The Rail data frame has 18 rows and 2 columns. Format This data frame contains the following columns: Rail an ordered factor identifying the rail on which the measurement was made. travel a numeric vector giving the travel time for ultrasonic head-waves in the rail (nanoseconds). The value given is the original travel time minus 36,100 nanoseconds. Details Devore (2000, Example 10.10, p. 427) cites data from an article in Materials Evaluation on “a study of travel time for a certain type of wave that results from longitudinal stress of rails used for railroad track.” Source
M. (2000), Mixed-Effects Models in S and S-PLUS, Springer, New York. (Appendix A.26)
L. (2000), Probability and Statistics for Engineering and the Sciences (5th ed), Duxbury,
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, 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, 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, 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, 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, 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
Cressie, N.A.C. (1993), "Statistics for Spatial Data", J. Wiley & Sons. See Also corRatio, plot.Variogram Variogram Examples cs1 <- corRatio(7, form = ~ Time | Rat) cs1 <- Initialize(cs1, BodyWeight) Variogram(cs1)[1:10,] Variogram.corSpatial Calculate Semi-variogram for a corSpatial Object Description This method function calculates the semi-variogram values corresponding to the model defined in
Cressie, N.A.C. (1993), "Statistics for Spatial Data", J. Wiley & Sons. See Also corSpher, plot.Variogram, Variogram Examples cs1 <- corSpher(15, form = ~ Time | Rat) cs1 <- Initialize(cs1, BodyWeight) Variogram(cs1)[1:10,] Variogram.default Calculate Semi-variogram Description This method function calculates the semi-variogram for an arbitrary vector object, according to the distances in distance. For each pair of elements x, y in object, the corresponding semi-variogram is (x − y)2 /2. The semi-variogram is useful for identifying and modeling spatial correlation structures in observations with constant expectation and constant variance. Usage ## Default S3 method: 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 require additional arguments. None are used in this method. Variogram.gls Value a data frame with columns variog and dist representing, respectively, the semi-variogram values and the corresponding distances. The returned value inherits from class Variogram. Author(s) José Pinheiro and Douglas Bates <bates@stat.wisc.edu> References
Cressie, N.A.C. (1993), "Statistics for Spatial Data", J. Wiley & Sons. See Also
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