Skip to content

saemix

Stochastic Approximation Expectation Maximization (SAEM) Algorithm

v3.5 · Feb 25, 2026 · GPL (>= 2)

Description

The 'saemix' package implements the Stochastic Approximation EM algorithm for parameter estimation in (non)linear mixed effects models. It (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) <doi:10.18637/jss.v080.i03>). 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': <https://github.com/iame-researchCenter/saemix/blob/7638e1b09ccb01cdff173068e01c266e906f76eb/docsaem.pdf>.

Downloads

CRAN

827

Last 30 days

4042nd

2K

Last 90 days

11.8K

Last year

Trend: +54.6% (30d vs prior 30d)

r2u CRAN

8

Last 30 days

60

Last 90 days

207

Last year

Trend: -11.1% (30d vs prior 30d)

autoCRAN

6

Last 7 days

17

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

22,636

Files

123

Compiled share

0%

Has compiled src

No

Language breakdown

R 16,664 (73.6%)Docs 5,972 (26.4%)

API

Exported functions

138

Internal functions

1

Recent export changes

v3.3+1 checkInitialFixedEffects
v3.2+8 dataGen.NP, dataGen.Par, dataGen.case +5 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

73.7%

\dontrun example ratio

2%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

80%

Unsafe pattern score

0

Dep constraint coverage

9.1%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

14

First release

2011-04-07

Latest release

2026-02-25

Avg cadence

350 days

Cold removal rate

100%

Dep drift

8

LOC over versions

v0.95: 4,907 LOCv0.96: 4,915 LOCv0.96.1: 4,915 LOCv1.2: 8,160 LOCv2.1: 12,028 LOCv2.2: 12,882 LOCv2.3: 13,015 LOCv2.4: 14,444 LOCv3.0: 19,624 LOCv3.1: 19,676 LOCv3.2: 21,965 LOCv3.3: 22,440 LOCv3.4: 22,629 LOCv3.5: 22,636 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (4)

Dependency Network

Dependencies Reverse dependencies npde gridExtra ggplot2 rlang mclust scales MASS GrowthCurveME mkin nlive varTestnlme saemix

Version History

15 tracked
new 3.5 Mar 10, 2026
updated 3.5 ← 3.4 diff Feb 24, 2026
updated 3.4 ← 3.3 diff Jul 30, 2025
updated 3.3 ← 3.2 diff Mar 4, 2024
updated 3.2 ← 3.1 diff Jun 26, 2023
updated 3.1 ← 3.0 diff Aug 4, 2022
updated 3.0 ← 2.4 diff Feb 7, 2022
updated 2.4 ← 2.3 diff Feb 23, 2021
updated 2.3 ← 2.2 diff Dec 5, 2019
updated 2.2 ← 2.1 diff Oct 9, 2018
updated 2.1 ← 1.2 diff Aug 23, 2017
updated 1.2 ← 0.96.1 diff Feb 24, 2014
updated 0.96.1 ← 0.96 diff Feb 28, 2013
updated 0.96 ← 0.95 diff Jul 1, 2011
new 0.95 Jun 29, 2011