Optimizes interventions for adaptive "Learn-As-you-GO" (LAGO) trials, in which the intervention package is updated between stages using accumulating data. Given data from completed stages, lago_optimization() fits the outcome model (via 'stats' generalized linear models or, for clustered designs, cluster-robust variance) and computes the cost-optimal recommended intervention for the next stage that is expected to reach a target mean outcome and/or a desired statistical power. get_confidence_set() constructs confidence sets for the optimal intervention, and visualize_cost() and lago_report() summarize the cost surface and results. Methods are described in Nevo, Lok and Spiegelman (2021) <doi:10.1214/20-aos1978> and Bing, Spiegelman, Nevo and Lok (2025) <doi:10.1093/biomtc/ujaf061>.
| Version: | 1.1.0 |
| Depends: | R (≥ 2.10) |
| Imports: | rje, NlcOptim, cli, bslib, shiny, ggplot2, shinyjs, Rcpp |
| LinkingTo: | Rcpp |
| Suggests: | testthat (≥ 3.0.0), tibble, knitr, rmarkdown, jsonlite, spelling |
| Published: | 2026-10-24 |
| DOI: | 10.32614/CRAN.package.LAGOtrials (may not be active yet) |
| Author: | Ante Bing [aut, cre], Minh Bui [aut], Jingyu Cui [aut], Mike Bostock [cph] (Author of the bundled D3 v7 library, inst/js/d3.v7.min.js) |
| Maintainer: | Ante Bing <abing at bu.edu> |
| BugReports: | https://github.com/correspondMerchant/LAGO-R-Package/issues |
| License: | GPL-3 |
| Copyright: | This package bundles the D3 v7 library
(inst/js/d3.v7.min.js), which is ISC-licensed and Copyright
2010-2023 Mike Bostock. See inst/COPYRIGHTS and
inst/js/d3-LICENSE. All other code is Copyright the LAGO
authors under GPL-3. LAGOtrials copyright details |
| URL: | https://correspondmerchant.github.io/LAGO-R-Package/, https://github.com/correspondMerchant/LAGO-R-Package |
| NeedsCompilation: | yes |
| Language: | en-US |
| Materials: | README, NEWS |
| CRAN checks: | LAGOtrials results |
| Reference manual: | LAGOtrials.html , LAGOtrials.pdf |
| Vignettes: |
Optimizing an intervention with LAGO (source, R code) |
| Package source: | LAGOtrials_1.1.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=LAGOtrials to link to this page.