Learn R Programming

saemix (version 3.3)

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

537

Version

3.3

License

GPL (>= 2)

Last Published

March 5th, 2024

Functions in saemix (3.3)

SaemixData-class

Class "SaemixData"
discreteVPC

VPC for non Gaussian data models
dataGen.case

Bootstrap datasets
checkInitialFixedEffects

Check initial fixed effects for an SaemixModel object applied to an SaemixData object
createSaemixObject

Create saemix objects with only data filled in
compare.saemix

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

Computes the Fisher Information Matrix by linearisation
default.saemix.plots

Wrapper functions to produce certain sets of default plots
knee.saemix

Knee pain data
fitted.saemix

Extract Model Predictions
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
cow.saemix

Evolution of the weight of 560 cows, in SAEM format
oxboys.saemix

Heights of Boys in Oxford
plot.SaemixData

Plot of longitudinal data
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.
llgq.saemix

Log-likelihood using Gaussian Quadrature
llis.saemix

Log-likelihood using Importance Sampling
lung.saemix

NCCTG Lung Cancer Data, in SAEM format
epilepsy.saemix

Epilepsy count data
discreteVPCTTE

VPC for time-to-event models
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
rapi.saemix

Rutgers Alcohol Problem Index
logLik

Extract likelihood from an SaemixObject resulting from a call to saemix
[

Get/set methods for SaemixData object
predict.SaemixModel

Predictions for a new dataset
map.saemix

Estimates of the individual parameters (conditional mode)
forward.procedure

Backward procedure for joint selection of covariates and random effects
print-methods

Methods for Function print
plotDiscreteData

Plot non Gaussian data
readSaemix,SaemixData-method

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

Methods for Function initialize
saemix.predict

Compute model predictions after an saemix fit
saemix.internal

Internal saemix objects
predict-methods

Methods for Function predict
readSaemix-methods

Methods for Function read
showall-methods

Methods for Function showall
saemixControl

List of options for running the algorithm SAEM
mydiag

Matrix diagonal
replaceData

Replace the data element in an SaemixObject object
simulate.SaemixObject

Perform simulations under the model for an saemixObject object
saemix.plot.data

Functions implementing each type of plot in SAEM
stepwise.procedure

Stepwise procedure for joint selection of covariates and random effects
saemixData

Function to create an SaemixData object
subset

Data subsetting
npdeSaemix

Create an npdeObject from an saemixObject
[,SaemixModel-method

Get/set methods for SaemixModel object
saemixModel

Function to create an SaemixModel object
plot,SaemixObject,ANY-method

General plot function from SAEM
summary-methods

Methods for Function summary
[,SaemixObject-method

Get/set methods for SaemixObject object
saemix.plot.select

Plots of the results obtained by SAEM
resid.saemix

Extract Model Residuals
[,SaemixRes-method

Get/set methods for SaemixRes object
saemix.plot.setoptions

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

Toenail data
yield.saemix

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

Extracts the Variance-Covariance Matrix for a Fitted Model Object
plot-methods

Methods for Function plot
saemix

Stochastic Approximation Expectation Maximization (SAEM) algorithm
saemixPredictNewdata

Predictions for a new dataset
xbinning

Internal functions used to produce prediction intervals (from the npde package)
show-methods

Methods for Function show
saemix.bootstrap

Bootstrap for saemix fits
transform

Transform covariates
validate.covariance.model

Validate the structure of the covariance model
simulateDiscreteSaemix

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

Tests for normalised prediction distribution errors
transformCatCov

Transform covariates
step.saemix

Stepwise procedure for joint selection of covariates and random effects
validate.names

Name validation (## )Helper function not intended to be called by the user)
transformContCov

Transform covariates
theo.saemix

Pharmacokinetics of theophylline
coef.saemix

Extract coefficients from an saemix fit
PD1.saemix

Data simulated according to an Emax response model, in SAEM format
SaemixRes-class

Class "SaemixRes"
SaemixModel-class

Class "SaemixModel"
SaemixObject-class

Class "SaemixObject"