From f8eacc6f2d8163129470597db9426c10c06b241e Mon Sep 17 00:00:00 2001 From: Sean Thimons Date: Wed, 21 Oct 2026 17:48:49 +0000 Subject: [PATCH] docs: add prerequisites and bootstrapping run-time guidance Add a Prerequisites section listing the data requirements up front, move the mirai section ahead of the first bootstrap example, and note that the exact beta-Poisson fit and large bootstraps can be slow. Mirrored in the getting-started vignette. --- README.md | 120 +++++++++++++++++++++------------- vignettes/getting-started.Rmd | 16 +++++ 2 files changed, 90 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index f75da4d..90dc389 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,18 @@ A work-in-progress Shiny interface lives in the a separate package that depends on `singlehit`; installing `singlehit` does not install or require it. +## Prerequisites + +Check that your data can be fitted before you start. `singlehit` needs: + +- **at least 3 distinct doses**, each greater than zero; +- **more than 1 positive response in total**, summed across all doses; and +- **counts of positive and negative subjects** for every dose, not just a + response proportion. Every dose group must contain at least one subject. + +Data that fail these checks are rejected with an explanatory error. See +[Input data format](#input-data-format) for column names and the full rules. + ## Installation