{"id":32203683,"url":"https://github.com/jan-imbi/adestr","last_synced_at":"2026-02-21T18:04:27.058Z","repository":{"id":163879760,"uuid":"623369684","full_name":"jan-imbi/adestr","owner":"jan-imbi","description":"Point estimates, confidence intervals and p-values for adaptive two-stage designs with planned adaptivity.","archived":false,"fork":false,"pushed_at":"2024-07-12T13:15:14.000Z","size":37327,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-09T10:58:56.362Z","etag":null,"topics":["adaptive","adoptr","confidence","designs","estimation","intervals","optimal","parameter","point","two-stage"],"latest_commit_sha":null,"homepage":"https://jan-imbi.github.io/adestr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jan-imbi.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-04T08:31:27.000Z","updated_at":"2024-07-12T13:12:19.000Z","dependencies_parsed_at":"2023-06-29T13:31:54.598Z","dependency_job_id":"b3f24bac-07f3-4298-ad5a-d53ef373aa2a","html_url":"https://github.com/jan-imbi/adestr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jan-imbi/adestr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jan-imbi%2Fadestr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jan-imbi%2Fadestr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jan-imbi%2Fadestr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jan-imbi%2Fadestr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jan-imbi","download_url":"https://codeload.github.com/jan-imbi/adestr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jan-imbi%2Fadestr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29689644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adaptive","adoptr","confidence","designs","estimation","intervals","optimal","parameter","point","two-stage"],"created_at":"2025-10-22T04:45:11.546Z","updated_at":"2026-02-21T18:04:27.053Z","avatar_url":"https://github.com/jan-imbi.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# adestr \u003ca href='https://github.com/jan-imbi/adestr'\u003e\u003cimg src='man/figures/sticker.png' align=\"right\" width=40% /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![doi](https://img.shields.io/badge/doi-10.1002%2Fsim.10020-blue?link=https%3A%2F%2Fdoi.org%2F10.1002%2Fsim.10020)](https://doi.org/10.1002/sim.10020\n)\n[![R-CMD-check](https://github.com/jan-imbi/adestr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jan-imbi/adestr/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/jan-imbi/adestr/branch/master/graph/badge.svg?token=ORYWTYOZPT)](https://app.codecov.io/gh/jan-imbi/adestr?branch=master)\n[![License](https://img.shields.io/badge/License-GPL_v2-blue.svg)](https://github.com/jan-imbi/adestr/blob/master/LICENSE.md)\n\u003c!-- badges: end --\u003e\n\nThis package implements methods to evaluate the performance characteristics\nof various point and interval estimators for adaptive two-stage designs with \nprespecified sample-size recalculation rules. Further, it allows for\nevaluation of these estimators on real datasets, and it implements methods\nto calculate p-values.\n\nCurrently, it works for designs objects which were produced by the\nR-package [`adoptr`](https://github.com/optad/adoptr), which calculates optimal design parameters adaptive\ntwo-stage designs.\n\nAn introductory vignette covering common usecases is given at [https://jan-imbi.github.io/adestr/articles/Introduction.html](https://jan-imbi.github.io/adestr/articles/Introduction.html).\n\nThis package comes suite of unit tests. The code of the test cases can be viewed here: [https://github.com/jan-imbi/adestr/tree/master/tests/testthat](https://github.com/jan-imbi/adestr/tree/master/tests/testthat). The authors assume no responsibility for the correctness of the\ncode or results produced by its usage. Use at your own risk.\n\nYou may also be interested in the reference implementation looking at the [https://github.com/jan-imbi/adestr/blob/master/R/reference_implementation.R](https://github.com/jan-imbi/adestr/blob/master/R/reference_implementation.R).\nIt uses the same notation as in our paper ([doi.org/10.1002/sim.10020](https://doi.org/10.1002/sim.10020)) and may therefore be\neasier to understand at first.\n\n\u003c!-- reference implementation verlinken --\u003e\n\n## Installation\n\nYou can install the development version of adestr by typing\n\n```{r, eval=FALSE}\nremotes::install_github(\"https://github.com/jan-imbi/adestr\")\n```\ninto your R console.\n\n## Small introductory example\n\nHere is a quick example showing the capabilities of `adestr`.\nFirst, load `adestr`:\n\n```{r}\nlibrary(adestr)\n```\n\nThen, you can evaluate the performance of an estimator like this:\n\n```{r, fig.width=7.2, fig.height=4, dev=\"svg\"}\nevaluate_estimator(\n score = MSE(),\n estimator = SampleMean(),\n data_distribution = Normal(two_armed = TRUE),\n design = get_example_design(),\n mu = c(0, 0.3, 0.6),\n sigma = 1\n)\n\nevaluate_estimator(\n score = MSE(),\n estimator = SampleMean(),\n data_distribution = Normal(two_armed = TRUE),\n design = get_example_design(),\n mu = seq(-0.7, 1.5, .05),\n sigma = 1\n) |\u003e \n  plot()\n```\n\nYou can analyze a dataset like this:\n\n```{r}\nset.seed(321)\ndat \u003c- data.frame(\n endpoint = c(rnorm(28, .2, 1), rnorm(28, 0, 1),\n              rnorm(23, .2, 1), rnorm(23, 0, 1)),\n group = factor(rep(c(\"ctl\", \"trt\", \"ctl\", \"trt\"),\n                    c(28,28,23,23))),\n stage = rep(c(1L, 2L), c(56, 46))\n)\nanalyze(\n data = dat,\n statistics = get_example_statistics(),\n data_distribution = Normal(two_armed = TRUE),\n sigma = 1,\n design = get_example_design()\n)\n```\n\nPlease refer to [https://jan-imbi.github.io/adestr/articles/Introduction.html](https://jan-imbi.github.io/adestr/articles/Introduction.html) for a more detailed introduction.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjan-imbi%2Fadestr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjan-imbi%2Fadestr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjan-imbi%2Fadestr/lists"}