Package: optedr 3.0.1

Carlos de la Calle-Arroyo

optedr: Calculating Optimal and D-Augmented Designs for Single- and Multi-Factor Models

Calculates D-, Ds-, A-, I- and L-optimal designs, weighted combinations of these via a Compound criterion, and KL-optimal designs for model discrimination, for non-linear single- and multi-factor models, via an implementation of the cocktail algorithm (Yu, 2011, <doi:10.1007/s11222-010-9183-2>). Multi-factor models use design variables x1, x2, … with a named-list design space; single-factor models remain backward compatible. Compares designs via their efficiency, augments any design with a controlled efficiency loss, and provides efficient rounding functions to convert approximate designs to exact ones.

Authors:Carlos de la Calle-Arroyo [aut, cre], Jesús López-Fidalgo [aut], Licesio J. Rodríguez-Aragón [aut]

optedr_3.0.1.tar.gz
optedr_3.0.1.zip(r-4.7)optedr_3.0.1.zip(r-4.6)optedr_3.0.1.zip(r-4.5)
optedr_3.0.1.tgz(r-4.6-any)optedr_3.0.1.tgz(r-4.5-any)
optedr_3.0.1.tar.gz(r-4.7-any)optedr_3.0.1.tar.gz(r-4.6-any)
optedr_3.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
optedr/json (API)

# Install 'optedr' in R:
install.packages('optedr', repos = c('https://kezrael.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kezrael/optedr/issues

On CRAN:

Conda:

5.89 score 5 stars 26 scripts 359 downloads 10 exports 43 dependencies

Last updated from:f80e2bcc81. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK268
source / vignettesOK235
linux-release-x86_64OK226
macos-release-arm64OK161
macos-oldrel-arm64OK166
windows-develOK217
windows-releaseOK214
windows-oldrelOK215
wasm-releaseOK177

Exports:augment_designcombinatorial_rounddesign_efficiencyefficient_roundget_augment_regionmake_glm_familymake_kl_funopt_desshiny_augmentshiny_optimal

Dependencies:base64encbslibcachemclicommonmarkcpp11crayondigestfarverfastmapfontawesomefsggplot2gluegtablehtmltoolshttpuvisobandjquerylibjsonlitelabelinglaterlifecyclemagrittrmemoisemimeotelpromisespurrrR6rappdirsRColorBrewerRcpprlangS7sassscalesshinysourcetoolsvctrsviridisLitewithrxtable

Augmenting designs with controlled efficiency loss
Motivation | Key parameters | One-factor augmentation | Step 1: compute the candidate region | Step 2: choose a point and augment | Comparing efficiency before and after | Using the optimal design as reference (calc_optimal_design = TRUE) | Two-factor augmentation | Initial design and candidate region | Three-factor augmentation | Augmenting with Ds-Optimality | Interactive mode

Last update: 2026-06-22
Started: 2026-06-22

Introduction to optedr: optimal designs for non-linear models
The optimal design problem | A first example: D-Optimality in one factor | Other optimality criteria | Ds-Optimality | A-Optimality | I-Optimality | L-Optimality | Multi-dimensional design spaces | Two-factor model: bisubstrate Michaelis-Menten | Three factors and beyond | Compound criterion | Design efficiency | Rounding to exact designs | efficient_round() | combinatorial_round()

Last update: 2026-06-22
Started: 2026-06-22

KL-Optimality: designs for model discrimination
Background | API overview | Example 1: Michaelis-Menten vs linear rival (Normal, 1D) | Example 2: exponential decay, Poisson family | Using make_kl_fun() for custom KL functions | Supported pairs | Example 3: Normal with different variances (1D) | Example 4: two-factor MM vs linear rival (make_kl_fun, 2D) | Example 5: discriminating error structures — the Hill model

Last update: 2026-06-22
Started: 2026-06-22

Readme and manuals

Help Manual

Help pageTopics
Add two designsadd_design
Update design given crosspoints and alphaadd_points
Augment Designaugment_design
Check Inputscheck_inputs
Combinatorial roundcombinatorial_round
Master function for the criterion functioncrit
Calculate crosspointscrosspoints
Cocktail Algorithm implementation for Compound OptimalityCWFMult
D-Augment Designdaugment_design
Criterion function for D-Optimalitydcrit
Remove low weight pointsdelete_points
Efficiency between optimal design and a user given designdesign_efficiency
Detect design variables from a model formuladetect_design_vars
Ds-Augment Designdsaugment_design
Criterion function for Ds-Optimalitydscrit
Sensitivity function for D-Optimalitydsens
Sensitivity function for Ds-Optimalitydssens
Cocktail Algorithm implementation for Ds-OptimalityDsWFMult
Cocktail Algorithm implementation for D-OptimalityDWFMult
Efficiency between two Information Matriceseff
Efficient Roundefficient_round
Find Maximumfindmax
Find Maximum Valuefindmaxval
Find Minimum Valuefindminval
Get Augment Regionsget_augment_region
Get D-augment regionget_daugment_region
Get Ds-augment regionget_dsaugment_region
Get L-augment regionget_laugment_region
Give effective limits to candidate points regiongetCross2
Parity of the crosspointsgetPar
Find where the candidate points region startsgetStart
Gradient functiongradient
Gradient function for a subset of variablesgradient22
Criterion function for I-Optimality and L-Optimalityicrit
Information Matrixinf_mat
Integrate IMintegrate_reg_int
Sensitivity function for I-Optimalityisens
Cocktail Algorithm implementation for L-, I- and A-OptimalityIWFMult
Cocktail Algorithm for KL-OptimalityKLWFMult
L-Augment Designlaugment_design
GLM family specification for KL-Optimalitymake_glm_family
Build a KL-divergence point function for use with opt_des()make_kl_fun
Calculates the optimal design for a specified criterionopt_des
Plot Convergence of the algorithmplot_convergence
Plot sensitivity functionplot_sens
Plot function for optdesplot.optdes
Print method for augment_region objectsprint.augment_region
Print function for optdesprint.optdes
Master function to calculate the sensitivity functionsens
Shiny D-augmentshiny_augment
Shiny Optimalshiny_optimal
Summary function for optdessummary.optdes
Tracetr
Update Design with new pointupdate_design
Merge close points of a designupdate_design_total
Deletes duplicates pointsupdate_sequence
Update weight D-Optimalityupdate_weights
Update weight Ds-Optimalityupdate_weightsDS
Update weight I-Optimalityupdate_weightsI
Weight function per distributionweight_function
Master function for the cocktail algorithm, that calls the appropriate one given the criterion.WFMult