Learn R Programming

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

saemix (version 3.1)

Stochastic Approximation Expectation Maximization (SAEM) Algorithm

Description

The 'saemix' package implements the Stochastic Approximation EM algorithm for parameter estimation in (non)linear mixed effects models. The SAEM algorithm (i) computes the maximum likelihood estimator of the population parameters, without any approximation of the model (linearisation, quadrature approximation,...), using the Stochastic Approximation Expectation Maximization (SAEM) algorithm, (ii) provides standard errors for the maximum likelihood estimator (iii) estimates the conditional modes, the conditional means and the conditional standard deviations of the individual parameters, using the Hastings-Metropolis algorithm (see Comets et al. (2017) ). Many applications of SAEM in agronomy, animal breeding and PKPD analysis have been published by members of the Monolix group. The full PDF documentation for the package including references about the algorithm and examples can be downloaded on the github of the IAME research institute for 'saemix': .

Copy Link

Version

Install

install.packages('saemix')

Monthly Downloads

921

Version

3.1

License

GPL (>= 2)

Maintainer

Emmanuelle Comets

Last Published

August 5th, 2022

Functions in saemix (3.1)

SaemixData-class

Class "SaemixData"
coef.saemix

Extract coefficients from a saemix fit
SaemixRes-class

Class "SaemixRes"
SaemixObject-class

Class "SaemixObject"
cow.saemix

Evolution of the weight of 560 cows, in SAEM format
SaemixModel-class

Class "SaemixModel"
compare.saemix

Model comparison with information criteria (AIC, BIC).
PD1.saemix

Data simulated according to an Emax response model, in SAEM format
conddist.saemix

Estimate conditional mean and variance of individual parameters using the MCMC algorithm
backward.procedure

Backward procedure for joint selection of covariates and random effects
fim.saemix

Computes the Fisher Information Matrix by linearisation
initialize-methods

Methods for Function initialize
forward.procedure

Backward procedure for joint selection of covariates and random effects
fitted.saemix

Extract Model Predictions
default.saemix.plots

Wrapper functions to produce certain sets of default plots
createSaemixObject

Create saemix objects with only data filled in
lung.saemix

NCCTG Lung Cancer Data, in SAEM format
llis.saemix

Log-likelihood using Importance Sampling
knee.saemix

Knee pain data
logLik

Extract likelihood from a saemixObject resulting from a call to saemix
map.saemix

Estimates of the individual parameters (conditional mode)
mydiag

Matrix diagonal
llgq.saemix

Log-likelihood using Gaussian Quadrature
oxboys.saemix

Heights of Boys in Oxford
npdeSaemix

Create an npdeObject from an saemixObject
plot.SaemixData

Plot of longitudinal data
[

Get/set methods for SaemixData object
plot,SaemixModel,SaemixData-method

Plot model predictions for a new dataset. If the dataset is large, only the first 20 subjects (id's) will be shown.
epilepsy.saemix

Epilepsy count data
psi-methods

Functions to extract the individual estimates of the parameters and random effects
plot,SaemixModel,ANY-method

Plot model predictions using an SaemixModel object
print-methods

Methods for Function print
plot,SaemixObject,ANY-method

General plot function from SAEM
plot-methods

Methods for Function plot
readSaemix-methods

Methods for Function read
replaceData

Replace the data element in a SaemixObject object
predict.SaemixModel

Predictions for a new dataset
predict-methods

Methods for Function predict
rapi.saemix

Rutgers Alcohol Problem Index
readSaemix,SaemixData-method

Create a longitudinal data structure from a file or a dataframe Helper function not intended to be called by the user
saemix

Stochastic Approximation Expectation Maximization (SAEM) algorithm
saemixData

Function to create a SaemixData object
saemix.internal

Internal saemix objects
saemixModel

Function to create a SaemixModel object
saemix.plot.setoptions

Function setting the default options for the plots in SAEM
resid.saemix

Extract Model Residuals
saemix.plot.select

Plots of the results obtained by SAEM
saemix.plot.data

Functions implementing each type of plot in SAEM
saemix.predict

Compute model predictions after an saemix fit
showall-methods

Methods for Function showall
saemixControl

List of options for running the algorithm SAEM
stepwise.procedure

Stepwise procedure for joint selection of covariates and random effects
simulateDiscreteSaemix

Perform simulations under the model for an saemixObject object defined by its log-likelihood
vcov

Extracts the Variance-Covariance Matrix for a Fitted Model Object
simulate.SaemixObject

Perform simulations under the model for an saemixObject object
yield.saemix

Wheat yield in crops treated with fertiliser, in SAEM format
subset

Data subsetting
summary-methods

Methods for Function summary
[,SaemixModel-method

Get/set methods for SaemixModel object
toenail.saemix

Toenail data
transform

Transform covariates
step.saemix

Stepwise procedure for joint selection of covariates and random effects
theo.saemix

Pharmacokinetics of theophylline
[,SaemixObject-method

Get/set methods for SaemixObject object
[,SaemixRes-method

Get/set methods for SaemixRes object
testnpde

Tests for normalised prediction distribution errors
validate.covariance.model

Validate the structure of the covariance model
validate.names

Name validation (## )Helper function not intended to be called by the user)
show-methods

Methods for Function show
saemixPredictNewdata

Predictions for a new dataset
transformContCov

Transform covariates
transformCatCov

Transform covariates