Fits mapping-based additive Gaussian process models for experiments in which each component has both a quantitative level and a position in an ordered sequence. Two model structures are available: a compact two-dimensional mapping and a full mapping with one fewer dimension than the number of components. Both models support parameter estimation, point prediction, and plug-in predictive uncertainty. Input checks validate the sequence data and apply consistent scaling to the quantitative inputs. Computationally intensive covariance and gradient calculations are implemented in C++ with 'Rcpp'. Initial-design functions combine a space-filling Latin hypercube with sequence permutations. The sequence portion can be generated randomly or optimized with simulated annealing or space-filling threshold accepting. Expected improvement can be optimized over both parts of the input, and a sequential interface supports Bayesian optimization of an expensive user-supplied objective. An integrated workflow can generate the initial design, evaluate the objective, and continue the sequential search in one call. The model was introduced by Xiao et al. (2024) <doi:10.1080/01621459.2022.2123335>.
| Version: | 0.12.0 |
| Imports: | Rcpp, nloptr, parallel, stats |
| LinkingTo: | Rcpp |
| Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
| Published: | 2026-09-24 |
| DOI: | 10.32614/CRAN.package.magp |
| Author: | Tony Wang [aut, cre, cph], Qian Xiao [aut, cph], Yaping Wang [cph], Abhyuday Mandal [cph], Xinwei Deng [cph] |
| Maintainer: | Tony Wang <wangtony883 at gmail.com> |
| BugReports: | https://github.com/twskr/magp/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/twskr/magp, https://CRAN.R-project.org/package=magp |
| NeedsCompilation: | yes |
| Citation: | magp citation info |
| Materials: | README, NEWS |
| CRAN checks: | magp results |
| Reference manual: | magp.html , magp.pdf |
| Vignettes: |
Get started with magp (source, R code) Design and sequential optimization (source, R code) Computational benchmark (source, R code) |
| Package source: | magp_0.12.0.tar.gz |
| Windows binaries: | r-devel: magp_0.8.0.zip, r-release: magp_0.8.0.zip, r-oldrel: magp_0.8.0.zip |
| macOS binaries: | r-release (arm64): magp_0.8.0.tgz, r-oldrel (arm64): magp_0.8.0.tgz, r-release (x86_64): magp_0.8.0.tgz, r-oldrel (x86_64): magp_0.8.0.tgz |
| Old sources: | magp archive |
Please use the canonical form https://CRAN.R-project.org/package=magp to link to this page.