Learn R Programming

⚠️There's a newer version (3.1-166) of this package.Take me there.

nlme (version 3.1-162)

Linear and Nonlinear Mixed Effects Models

Description

Fit and compare Gaussian linear and nonlinear mixed-effects models.

Copy Link

Version

Install

install.packages('nlme')

Monthly Downloads

134,390

Version

3.1-162

License

GPL (>= 2)

Last Published

January 31st, 2023

Functions in nlme (3.1-162)

Covariate

Assign Covariate Values
ACF

Autocorrelation Function
ACF.lme

Autocorrelation Function for lme Residuals
BodyWeight

Rat weight over time for different diets
Cefamandole

Pharmacokinetics of Cefamandole
Alfalfa

Split-Plot Experiment on Varieties of Alfalfa
Assay

Bioassay on Cell Culture Plate
ACF.gls

Autocorrelation Function for gls Residuals
Covariate.varFunc

Assign varFunc Covariate
Coef

Assign Values to Coefficients
Fatigue

Cracks caused by metal fatigue
Dim

Extract Dimensions from an Object
[.pdMat

Subscript a pdMat Object
Dim.pdMat

Dimensions of a pdMat Object
Dialyzer

High-Flux Hemodialyzer
Dim.corSpatial

Dimensions of a corSpatial Object
Glucose

Glucose levels over time
Gasoline

Refinery yield of gasoline
Earthquake

Earthquake Intensity
Dim.corStruct

Dimensions of a corStruct Object
Glucose2

Glucose Levels Following Alcohol Ingestion
Initialize.glsStruct

Initialize a glsStruct Object
Initialize.corStruct

Initialize corStruct Object
Gun

Methods for firing naval guns
Initialize.reStruct

Initialize reStruct Object
Initialize.lmeStruct

Initialize an lmeStruct Object
LDEsysMat

Generate system matrix for LDEs
IGF

Radioimmunoassay of IGF-I Protein
Initialize

Initialize Object
Initialize.varFunc

Initialize varFunc Object
Meat

Tenderness of meat
Matrix.pdMat

Assign Matrix to a pdMat or pdBlocked Object
Matrix

Assign Matrix Values
Matrix.reStruct

Assign reStruct Matrices
MathAchieve

Mathematics achievement scores
Milk

Protein content of cows' milk
Machines

Productivity Scores for Machines and Workers
Names

Names Associated with an Object
Muscle

Contraction of heart muscle sections
MathAchSchool

School demographic data for MathAchieve
Oxboys

Heights of Boys in Oxford
Names.formula

Extract Names from a formula
Names.reStruct

Names of an reStruct Object
Names.pdMat

Names of a pdMat Object
Oxide

Variability in Semiconductor Manufacturing
Oats

Split-plot Experiment on Varieties of Oats
Nitrendipene

Assay of nitrendipene
Names.pdBlocked

Names of a pdBlocked Object
Orthodont

Growth curve data on an orthdontic measurement
Ovary

Counts of Ovarian Follicles
Soybean

Growth of soybean plants
Relaxin

Assay for Relaxin
Pixel

X-ray pixel intensities over time
Phenobarb

Phenobarbitol Kinetics
PBG

Effect of Phenylbiguanide on Blood Pressure
Quinidine

Quinidine Kinetics
RatPupWeight

The weight of rat pups
Spruce

Growth of Spruce Trees
Rail

Evaluation of Stress in Railway Rails
Remifentanil

Pharmacokinetics of Remifentanil
Variogram.corLin

Calculate Semi-variogram for a corLin Object
Variogram.corRatio

Calculate Semi-variogram for a corRatio Object
Variogram.corExp

Calculate Semi-variogram for a corExp Object
Tetracycline1

Pharmacokinetics of tetracycline
VarCorr

Extract variance and correlation components
Variogram

Calculate Semi-variogram
Variogram.corGaus

Calculate Semi-variogram for a corGaus Object
Variogram.corSpher

Calculate Semi-variogram for a corSpher Object
Variogram.corSpatial

Calculate Semi-variogram for a corSpatial Object
Tetracycline2

Pharmacokinetics of tetracycline
allCoef

Extract Coefficients from a Set of Objects
as.matrix.corStruct

Matrix of a corStruct Object
Wheat

Yields by growing conditions
Variogram.lme

Calculate Semi-variogram for Residuals from an lme Object
Wafer

Modeling of Analog MOS Circuits
anova.gls

Compare Likelihoods of Fitted Objects
Variogram.default

Calculate Semi-variogram
Variogram.gls

Calculate Semi-variogram for Residuals from a gls Object
anova.lme

Compare Likelihoods of Fitted Objects
Wheat2

Wheat Yield Trials
coef.lmList

Extract lmList Coefficients
as.matrix.pdMat

Matrix of a pdMat Object
as.matrix.reStruct

Matrices of an reStruct Object
asOneFormula

Combine Formulas of a Set of Objects
coef.corStruct

Coefficients of a corStruct Object
coef.gnls

Extract gnls Coefficients
asTable

Convert groupedData to a matrix
balancedGrouped

Create a groupedData object from a matrix
augPred

Augmented Predictions
bdf

Language scores
coef.varFunc

varFunc Object Coefficients
coef.lme

Extract lme Coefficients
collapse

Collapse According to Groups
collapse.groupedData

Collapse a groupedData Object
corAR1

AR(1) Correlation Structure
coef.pdMat

pdMat Object Coefficients
comparePred

Compare Predictions
coef.reStruct

reStruct Object Coefficients
compareFits

Compare Fitted Objects
coef.modelStruct

Extract modelStruct Object Coefficients
corClasses

Correlation Structure Classes
corLin

Linear Correlation Structure
corFactor

Factor of a Correlation Matrix
corCAR1

Continuous AR(1) Correlation Structure
corMatrix

Extract Correlation Matrix
corARMA

ARMA(p,q) Correlation Structure
corCompSymm

Compound Symmetry Correlation Structure
corExp

Exponential Correlation Structure
corFactor.corStruct

Factor of a corStruct Object Matrix
corGaus

Gaussian Correlation Structure
corSpher

Spherical Correlation Structure
corSpatial

Spatial Correlation Structure
corNatural

General correlation in natural parameterization
corSymm

General Correlation Structure
corMatrix.pdMat

Extract Correlation Matrix from a pdMat Object
corMatrix.corStruct

Matrix of a corStruct Object
corMatrix.reStruct

Extract Correlation Matrix from Components of an reStruct Object
fdHess

Finite difference Hessian
ergoStool

Ergometrics experiment with stool types
corRatio

Rational Quadratic Correlation Structure
fitted.glsStruct

Calculate glsStruct Fitted Values
fitted.gnlsStruct

Calculate gnlsStruct Fitted Values
fixef.lmList

Extract lmList Fixed Effects
fixed.effects

Extract Fixed Effects
formula.pdMat

Extract pdMat Formula
fitted.lmeStruct

Calculate lmeStruct Fitted Values
fitted.lme

Extract lme Fitted Values
formula.pdBlocked

Extract pdBlocked Formula
fitted.nlmeStruct

Calculate nlmeStruct Fitted Values
fitted.lmList

Extract lmList Fitted Values
getCovariate.corStruct

Extract corStruct Object Covariate
gapply

Apply a Function by Groups
getData.lmList

Extract lmList Object Data
getCovariate

Extract Covariate from an Object
getData.gls

Extract gls Object Data
formula.reStruct

Extract reStruct Object Formula
getCovariateFormula

Extract Covariates Formula
getData

Extract Data from an Object
getCovariate.data.frame

Extract Data Frame Covariate
getCovariate.varFunc

Extract varFunc Covariate
getGroups.varFunc

Extract varFunc Groups
getGroups.lme

Extract lme Object Groups
getData.lme

Extract lme Object Data
getGroups

Extract Grouping Factors from an Object
getGroups.corStruct

Extract corStruct Groups
getGroups.gls

Extract gls Object Groups
getGroups.data.frame

Extract Groups from a Data Frame
getResponse

Extract Response Variable from an Object
getGroups.lmList

Extract lmList Object Groups
getGroupsFormula

Extract Grouping Formula
glsStruct

Generalized Least Squares Structure
getResponseFormula

Extract Formula Specifying Response Variable
gls-internal

Auxiliary functions used by gls
glsObject

Fitted gls Object
gnlsControl

Control Values for gnls Fit
gls

Fit Linear Model Using Generalized Least Squares
gnlsObject

Fitted gnls Object
gnls

Fit Nonlinear Model Using Generalized Least Squares
glsControl

Control Values for gls Fit
getVarCov

Extract variance-covariance matrix
isInitialized

Check if Object is Initialized
isBalanced

Check a Design for Balance
intervals.lmList

Confidence Intervals on lmList Coefficients
intervals.gls

Confidence Intervals on gls Parameters
groupedData

Construct a groupedData Object
lmList

List of lm Objects with a Common Model
gsummary

Summarize by Groups
gnlsStruct

Generalized Nonlinear Least Squares Structure
intervals.lme

Confidence Intervals on lme Parameters
intervals

Confidence Intervals on Coefficients
lmList.groupedData

lmList Fit from a groupedData Object
logDet.corStruct

Extract corStruct Log-Determinant
lme

Linear Mixed-Effects Models
lmeStruct

Linear Mixed-Effects Structure
logDet

Extract the Logarithm of the Determinant
lme.lmList

LME fit from lmList Object
lme.groupedData

LME fit from groupedData Object
logDet.pdMat

Extract Log-Determinant from a pdMat Object
lmeControl

Specifying Control Values for lme Fit
lmeObject

Fitted lme Object
logLik.lmeStruct

Log-Likelihood of an lmeStruct Object
logLik.lme

Log-Likelihood of an lme Object
logLik.gnls

Log-Likelihood of a gnls Object
logLik.glsStruct

Log-Likelihood of a glsStruct Object
logLik.lmList

Log-Likelihood of an lmList Object
logLik.varFunc

Extract varFunc logLik
logDet.reStruct

Extract reStruct Log-Determinants
logLik.reStruct

Calculate reStruct Log-Likelihood
logLik.gnlsStruct

Log-Likelihood of a gnlsStruct Object
logLik.corStruct

Extract corStruct Log-Likelihood
nlmeStruct

Nonlinear Mixed-Effects Structure
needUpdate.modelStruct

Check if a modelStruct Object Needs Updating
model.matrix.reStruct

reStruct Model Matrix
nlsList

List of nls Objects with a Common Model
needUpdate

Check if Update is Needed
nlme.nlsList

NLME fit from nlsList Object
nlme

Nonlinear Mixed-Effects Models
nlme-deprecated

Deprecated Functions in Package nlme
nlmeControl

Control Values for nlme Fit
nlmeObject

Fitted nlme Object
pdCompSymm

Positive-Definite Matrix with Compound Symmetry Structure
pairs.compareFits

Pairs Plot of compareFits Object
pdConstruct.pdBlocked

Construct pdBlocked Objects
nlsList.selfStart

nlsList Fit from a selfStart Function
pdConstruct

Construct pdMat Objects
pdBlocked

Positive-Definite Block Diagonal Matrix
pairs.lme

Pairs Plot of an lme Object
pairs.lmList

Pairs Plot of an lmList Object
pdDiag

Diagonal Positive-Definite Matrix
pdClasses

Positive-Definite Matrix Classes
pdMatrix.reStruct

Extract Matrix or Square-Root Factor from Components of an reStruct Object
pdIdent

Multiple of the Identity Positive-Definite Matrix
pdFactor

Square-Root Factor of a Positive-Definite Matrix
pdNatural

General Positive-Definite Matrix in Natural Parametrization
pdMatrix

Extract Matrix or Square-Root Factor from a pdMat Object
phenoModel

Model function for the Phenobarb data
pdSymm

General Positive-Definite Matrix
pdFactor.reStruct

Extract Square-Root Factor from Components of an reStruct Object
pdMat

Positive-Definite Matrix
pdLogChol

General Positive-Definite Matrix
plot.ACF

Plot an ACF Object
plot.lmList

Plot an lmList Object
plot.Variogram

Plot a Variogram Object
plot.nfnGroupedData

Plot an nfnGroupedData Object
plot.lme

Plot an lme or nls object
plot.augPred

Plot an augPred Object
plot.gls

Plot a gls Object
plot.nffGroupedData

Plot an nffGroupedData Object
plot.intervals.lmList

Plot lmList Confidence Intervals
plot.compareFits

Plot a compareFits Object
predict.lme

Predictions from an lme Object
plot.ranef.lmList

Plot a ranef.lmList Object
plot.ranef.lme

Plot a ranef.lme Object
plot.nmGroupedData

Plot an nmGroupedData Object
predict.gnls

Predictions from a gnls Object
pooledSD

Extract Pooled Standard Deviation
predict.gls

Predictions from a gls Object
predict.nlme

Predictions from an nlme Object
print.summary.pdMat

Print a summary.pdMat Object
predict.lmList

Predictions from an lmList Object
reStruct

Random Effects Structure
random.effects

Extract Random Effects
ranef.lmList

Extract lmList Random Effects
ranef.lme

Extract lme Random Effects
qqnorm.gls

Normal Plot of Residuals from a gls Object
print.varFunc

Print a varFunc Object
recalc

Recalculate Condensed Linear Model Object
recalc.corStruct

Recalculate for corStruct Object
qqnorm.lme

Normal Plot of Residuals or Random Effects from an lme Object
quinModel

Model function for the Quinidine data
residuals.lmeStruct

Calculate lmeStruct Residuals
residuals.glsStruct

Calculate glsStruct Residuals
recalc.varFunc

Recalculate for varFunc Object
recalc.reStruct

Recalculate for an reStruct Object
residuals.lmList

Extract lmList Residuals
residuals.gnlsStruct

Calculate gnlsStruct Residuals
residuals.nlmeStruct

Calculate nlmeStruct Residuals
residuals.gls

Extract gls Residuals
recalc.modelStruct

Recalculate for a modelStruct Object
residuals.lme

Extract lme Residuals
solve.pdMat

Calculate Inverse of a Positive-Definite Matrix
summary.modelStruct

Summarize a modelStruct Object
summary.gls

Summarize a Generalized Least Squares gls Object
summary.corStruct

Summarize a corStruct Object
splitFormula

Split a Formula
simulate.lme

Simulate Results from lme Models
solve.reStruct

Apply Solve to an reStruct Object
summary.lmList

Summarize an lmList Object
summary.nlsList

Summarize an nlsList Object
summary.lme

Summarize an lme Object
varComb

Combination of Variance Functions
summary.varFunc

Summarize "varFunc" Object
update.modelStruct

Update a modelStruct Object
varExp

Exponential Variance Function
varFixed

Fixed Variance Function
summary.pdMat

Summarize a pdMat Object
varConstProp

Constant Plus Proportion Variance Function
varConstPower

Constant Plus Power Variance Function
update.varFunc

Update varFunc Object
varPower

Power Variance Function
varClasses

Variance Function Classes
varWeights.glsStruct

Variance Weights for glsStruct Object
varIdent

Constant Variance Function
varWeights.lmeStruct

Variance Weights for lmeStruct Object
varWeights

Extract Variance Function Weights
varFunc

Variance Function Structure