LAGOtrials — playground

Design a LAGO optimization interactively, in your browser, with no install. Pick a bundled dataset or upload your own CSV, choose the outcome and intervention components, set the bounds, per-unit costs and outcome goal, then press Run. The recommendation is drawn with the package's own interactive webR-powered charts.

Starting webR…

First load downloads R and the package (tens of MB) once and can take up to a minute; after that, runs are quick.

1. Data

Drop a .csv here, or click to choose

Comma-separated with a header row; numeric columns become the outcome and component choices.

2. Model

R code for this configuration

Paste this into R (after library(LAGOtrials)) to reproduce the run.

# choose an outcome and at least one intervention component

Result


    

webR runs a WebAssembly build of R (4.6.0) entirely client-side; nothing you load or type leaves your browser. The confidence-set plot is drawn for one- or two-component interventions (three or more still get the cost curves and the full console summary). This playground exposes the common options; for the rest — a power goal, center characteristics and fixed effects, clustering (icc), a custom GLM family/link, and more — call lago_optimization() in R (copy the snippet above as a starting point). See the package documentation for the complete API.