This page is the “how-to” for the app. Follow the 3-step workflow below: choose data → map variables & pick a model → run analytical or repeated calculations → export reports.
time, status, arm (plus covariates)..csv pilot dataset.
Your pilot dataset must contain at least three columns that you will map in Step 2:
time (positive follow-up time), status (1 = event, 0 = censored), and arm (treatment indicator; 1 = treated).
Additional covariates are optional but strongly recommended for adjusted/robust planning.
time: numeric, in days (or your study unit), strictly > 0.status: 0/1. If your file uses “Yes/No”, convert to 0/1 before upload.arm: 0/1 or a 2-level factor. The app treats 1 as the treatment arm.status (e.g., 1/2) needs recoding.| Column | Type | Meaning |
|---|---|---|
time | numeric | follow-up time |
status | 0/1 | 1 = event, 0 = censored |
arm | 0/1 | 1 = treated, 0 = control |
x1, x2, … | mixed | baseline covariates (optional) |
strata | factor | needed only for stratified models |
Use this when you have real study or pilot data and want the app to learn empirical survival/censoring patterns.
.csv (the uploader is configured for CSV).Use this when you are prototyping or running scenario planning without a pilot dataset.
1:1, 2:1.(x - a) / b.Once data exist, the “Model & Analysis” panel becomes available. First map the required columns: Time-to-Event, Status, and Treatment Arm. Some models require additional inputs: stratified models need a Stratification Variable; dependent censoring needs covariates for the censoring Cox model.
| RMST model | Use when… | Extra mapping |
|---|---|---|
| Linear IPCW Model | you want a straightforward adjusted RMST comparison with inverse-probability-of-censoring weights | none |
| Additive Stratified Model | effects differ by strata and you want additive structure across strata | strata required |
| Multiplicative Stratified Model | you prefer multiplicative structure across strata | strata required |
| Semiparametric (GAM) Model | nonlinear covariate effects are plausible and you want flexible adjustment | none |
| Dependent Censoring Model | censoring may depend on covariates and you want an explicit censoring model | choose censoring model covariates |
Pick τ within the reliable support of follow-up. Practically: choose τ near a clinically meaningful horizon (e.g., 6/12 months), but not so large that almost everyone is censored before τ. If in doubt, start with a percentile of observed follow-up (e.g., 70–80%).
R (≥ 500 recommended) and an optional seed.For each candidate sample size, the app repeatedly simulates/bootstraps realizations under the pilot-data mechanism, recomputes the test statistic, and estimates power as the rejection proportion at level α.
R reduces Monte Carlo error (but increases runtime).Download HTML (most robust) and PDF (requires LaTeX such as TinyTeX/MiKTeX) after a successful run.
Run the analysis after mapping inputs. Results populate the plots, tables, and run log, and the report downloads become available.
Map the correct columns in Step 2. The app will default to the first columns if it can’t detect names like time, status, arm.
status = 1 indicates the event (not censoring).Pick covariates for the censoring Cox model. Avoid including treatment; the app excludes it by design.
Use the HTML report first. If you need PDF, install TinyTeX/MiKTeX and re-run; LaTeX errors will appear in the log.