{
  "_id": "6a1020b2acfb0bcc41c8bb88",
  "Package": "safestats",
  "Type": "Package",
  "Title": "Safe Anytime-Valid Inference",
  "Version": "0.8.7",
  "Authors@R": "c(\nperson(\"Rosanne\", \"Turner\", email = \"rosanne.turner@cwi.nl\",\nrole = \"aut\"),\nperson(\"Alexander\", \"Ly\", email = \"a.ly@jasp-stats.org\",\nrole = c(\"cre\", \"aut\")),\nperson(\"Muriel Felipe\", \"Perez-Ortiz\", email = \"Muriel.Perez@cwi.nl\",\nrole = c(\"ctb\")),\nperson(\"Judith\", \"ter Schure\", email = \"Judith.ter.Schure@cwi.nl\",\nrole = c(\"ctb\")),\nperson(\"Peter\", \"Grunwald\", email = \"Peter.Grunwald@cwi.nl\",\nrole = c(\"ctb\"))\n)",
  "Maintainer": "Alexander Ly <a.ly@jasp-stats.org>",
  "Description": "Functions to design and apply tests that are anytime\nvalid. The functions can be used to design hypothesis tests in\nthe prospective/randomised control trial setting or in the\nobservational/retrospective setting. The resulting tests remain\nvalid under both optional stopping and optional continuation.\nThe current version includes safe t-tests and safe tests of two\nproportions. For details on the theory of safe tests, see\nGrunwald, de Heide and Koolen (2019) \"Safe Testing\"\n<arXiv:1906.07801>, for details on safe logrank tests see ter\nSchure, Perez-Ortiz, Ly and Grunwald (2020) \"The Safe Logrank\nTest: Error Control under Continuous Monitoring with Unlimited\nHorizon\" <arXiv:2011.06931v3> and Turner, Ly and Grunwald\n(2021) \"Safe Tests and Always-Valid Confidence Intervals for\ncontingency tables and beyond\" <arXiv:2106.02693> for details\non safe contingency table tests.",
  "License": "LGPL (>= 3)",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "RoxygenNote": "7.2.2",
  "Language": "en-GB",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "pari-gp",
  "Repository": "https://alexanderlynl.r-universe.dev",
  "Date/Publication": "2022-11-24 14:53:10 UTC",
  "RemoteUrl": "https://github.com/alexanderlynl/safestats",
  "RemoteRef": "HEAD",
  "RemoteSha": "67b00855feec385c49f437bbae0541ad363673a3",
  "Packaged": {
    "Date": "2026-05-14 06:05:24 UTC",
    "User": "root"
  },
  "Author": "Rosanne Turner [aut],\nAlexander Ly [cre, aut],\nMuriel Felipe Perez-Ortiz [ctb],\nJudith ter Schure [ctb],\nPeter Grunwald [ctb]",
  "MD5sum": "b05063b46a93fd1b5e714fb6d933d30b",
  "_user": "alexanderlynl",
  "_type": "src",
  "_file": "safestats_0.8.7.tar.gz",
  "_fileid": "c545ff430b8d066da098de757b79d2fa773fecb210e087a7bd5db5ef0494fa4b",
  "_filesize": 4023044,
  "_sha256": "c545ff430b8d066da098de757b79d2fa773fecb210e087a7bd5db5ef0494fa4b",
  "_created": "2026-05-14T06:05:24.000Z",
  "_published": "2026-05-22T09:24:02.007Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77352031492,
      "time": 182,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6988292657"
    },
    {
      "job": 77352031477,
      "time": 186,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988293358"
    },
    {
      "job": 77352032011,
      "time": 285,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6988303630"
    },
    {
      "job": 77352031837,
      "time": 187,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988286700"
    },
    {
      "job": 77352031316,
      "time": 243,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988252439"
    },
    {
      "job": 77352031144,
      "time": 130,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157183456"
    },
    {
      "job": 77352032067,
      "time": 168,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6988289219"
    },
    {
      "job": 77352031596,
      "time": 130,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6988281050"
    },
    {
      "job": 77352032057,
      "time": 153,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6988285448"
    }
  ],
  "_buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/alexanderlynl/safestats",
  "_commit": {
    "id": "67b00855feec385c49f437bbae0541ad363673a3",
    "author": "AlexanderLyNL <a.ly@jasp-stats.org>",
    "committer": "AlexanderLyNL <a.ly@jasp-stats.org>",
    "message": "Update .Rbuildignore\n",
    "time": 1669301590
  },
  "_maintainer": {
    "name": "Alexander Ly",
    "email": "a.ly@jasp-stats.org",
    "login": "alexanderlynl",
    "uuid": 10271675
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6",
      "role": "Depends"
    },
    {
      "package": "stats",
      "version": ">= 3.6",
      "role": "Imports"
    },
    {
      "package": "hypergeo",
      "version": ">= 1.2-13",
      "role": "Imports"
    },
    {
      "package": "survival",
      "version": ">= 3.2-13",
      "role": "Imports"
    },
    {
      "package": "BiasedUrn",
      "version": ">= 1.07",
      "role": "Imports"
    },
    {
      "package": "boot",
      "version": ">= 1.3-28",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.6",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 0.3.5",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.0.6",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "graphics",
      "role": "Suggests"
    }
  ],
  "_owner": "alexanderlynl",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "evalues",
    "hacktoberfest",
    "safe-testing",
    "statistics"
  ],
  "_stars": 11,
  "_contributors": [
    {
      "user": "alexanderlynl",
      "count": 86,
      "uuid": 10271675
    },
    {
      "user": "rosanneturner",
      "count": 23,
      "uuid": 54638455
    },
    {
      "user": "judithterschure",
      "count": 1,
      "uuid": 50576181
    }
  ],
  "_userbio": {
    "uuid": 10271675,
    "type": "user",
    "name": "AlexanderLyNL"
  },
  "_downloads": {
    "count": 262,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/safestats"
  },
  "_devurl": "https://github.com/alexanderlynl/safestats",
  "_searchresults": 40,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/safestats.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/alexanderlynl/safestats",
  "_realowner": "alexanderlynl",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.8.6",
      "date": "2022-02-01"
    },
    {
      "version": "0.8.7",
      "date": "2022-11-24"
    }
  ],
  "_exports": [
    "checkDoubleArgumentsDesignObject",
    "computeBetaSafeT",
    "computeBetaSafeZ",
    "computeBootObj",
    "computeConfidenceBoundForLogOddsTwoProportions",
    "computeConfidenceBoundsForDifferenceTwoProportions",
    "computeConfidenceIntervalT",
    "computeConfidenceIntervalZ",
    "computeLogrankBetaFrom",
    "computeLogrankNEvents",
    "computeLogrankZ",
    "computeNPlanSafeT",
    "computeNPlanSafeZ",
    "computeStatsForLogrank",
    "designFreqT",
    "designFreqZ",
    "designPilotSafeT",
    "designPilotSafeZ",
    "designSafeLogrank",
    "designSafeT",
    "designSafeTwoProportions",
    "designSafeZ",
    "generateNormalData",
    "generateSurvData",
    "isTryError",
    "logrankSingleEExact",
    "logrankSingleZ",
    "plotConfidenceSequenceTwoProportions",
    "plotHistogramDistributionStoppingTimes",
    "plotSafeTDesignSampleSizeProfile",
    "replicateTTests",
    "returnOne",
    "rLogrank",
    "safe.prop.test",
    "safe.t.test",
    "safe.z.test",
    "safeLogrankTest",
    "safeLogrankTestStat",
    "safeTTest",
    "safeTTestStat",
    "safeTwoProportionsTest",
    "safeZ10Inverse",
    "safeZTest",
    "safeZTestStat",
    "sampleLogrankStoppingTimes",
    "sampleStoppingTimesSafeT",
    "sampleStoppingTimesSafeZ",
    "selectivelyContinueTTestCombineData",
    "setSafeStatsPlotOptionsAndReturnOldOnes",
    "simulateCoverageDifferenceTwoProportions",
    "simulateIncorrectStoppingTimesFisher",
    "simulateOptionalStoppingScenarioTwoProportions",
    "simulateTwoProportions"
  ],
  "_help": [
    {
      "page": "checkAndReturnsEsMinParameterSide",
      "title": "Checks consistency between the sided of the hypothesis and the minimal clinically relevant effect size or safe test defining parameter. Throws an error if the one-sided hypothesis is incongruent with the",
      "topics": [
        "checkAndReturnsEsMinParameterSide"
      ]
    },
    {
      "page": "checkAndReturnsNPlan",
      "title": "Check consistency between nPlan and the testType for one and two-sample z and t-tests",
      "topics": [
        "checkAndReturnsNPlan"
      ]
    },
    {
      "page": "checkDoubleArgumentsDesignObject",
      "title": "Helper function to check whether arguments are specified in a function at a higher level and already provided in the design object.",
      "topics": [
        "checkDoubleArgumentsDesignObject"
      ]
    },
    {
      "page": "computeBetaBatchSafeZ",
      "title": "Helper function: Computes the type II error based on the minimal clinically relevant effect size and sample size.",
      "topics": [
        "computeBetaBatchSafeZ"
      ]
    },
    {
      "page": "computeBetaSafeT",
      "title": "Helper function: Computes the type II error of the safeTTest based on the minimal clinically relevant standardised mean difference and nPlan.",
      "topics": [
        "computeBetaSafeT"
      ]
    },
    {
      "page": "computeBetaSafeZ",
      "title": "Helper function: Computes the type II error based on the minimal clinically relevant mean difference and nPlan",
      "topics": [
        "computeBetaSafeZ"
      ]
    },
    {
      "page": "computeBootObj",
      "title": "Computes the bootObj for sequential sampling procedures regarding nPlan, beta, the implied target",
      "topics": [
        "computeBootObj"
      ]
    },
    {
      "page": "computeConfidenceBoundForLogOddsTwoProportions",
      "title": "Estimate an upper or lower bound for a safe confidence sequence on the logarithm of the odds ratio for two proportions.",
      "topics": [
        "computeConfidenceBoundForLogOddsTwoProportions"
      ]
    },
    {
      "page": "computeConfidenceBoundsForDifferenceTwoProportions",
      "title": "Estimate Lower and Upper Bounds on the Confidence Sequence (Interval) for the Difference Divergence Measure for Two Proportions",
      "topics": [
        "computeConfidenceBoundsForDifferenceTwoProportions"
      ]
    },
    {
      "page": "computeConfidenceIntervalT",
      "title": "Helper function: Computes the safe confidence sequence for the mean in a t-test",
      "topics": [
        "computeConfidenceIntervalT"
      ]
    },
    {
      "page": "computeConfidenceIntervalZ",
      "title": "Helper function: Computes the safe confidence sequence for a z-test",
      "topics": [
        "computeConfidenceIntervalZ"
      ]
    },
    {
      "page": "computeEsMinSafeT",
      "title": "Helper function: Computes the minimal clinically relevant standardised mean difference for the safe t-test nPlan and beta.",
      "topics": [
        "computeEsMinSafeT"
      ]
    },
    {
      "page": "computeLogrankBetaFrom",
      "title": "Helper function: Computes the type II error under optional stopping based on the minimal clinically relevant hazard ratio and the maximum number of nEvents.",
      "topics": [
        "computeLogrankBetaFrom"
      ]
    },
    {
      "page": "computeLogrankNEvents",
      "title": "Helper function: Computes the planned sample size based on the minimal clinical relevant hazard ratio, alpha and beta under optional stopping.",
      "topics": [
        "computeLogrankNEvents"
      ]
    },
    {
      "page": "computeLogrankZ",
      "title": "Helper function to computes the logrank statistic for 'Surv' objects of type \"right\" and \"counting\" with the hypergeometric variance.",
      "topics": [
        "computeLogrankZ"
      ]
    },
    {
      "page": "computeMinEsBatchSafeZ",
      "title": "Computes the smallest mean difference that is detectable with chance 1-beta, for the provided sample size",
      "topics": [
        "computeMinEsBatchSafeZ"
      ]
    },
    {
      "page": "computeNEff",
      "title": "Help function to compute the effective sample size based on a length 2 vector of samples",
      "topics": [
        "computeNEff"
      ]
    },
    {
      "page": "computeNPlanBatchSafeT",
      "title": "Helper function: Computes the planned sample size for the safe t-test based on the minimal clinically relevant standardised effect size, alpha and beta.",
      "topics": [
        "computeNPlanBatchSafeT"
      ]
    },
    {
      "page": "computeNPlanBatchSafeZ",
      "title": "Helper function: Computes the planned sample size based on the minimal clinical relevant mean difference, alpha and beta.",
      "topics": [
        "computeNPlanBatchSafeZ"
      ]
    },
    {
      "page": "computeNPlanSafeT",
      "title": "Helper function: Computes the planned sample size of the safe t-test based on the minimal clinical relevant standardised mean difference.",
      "topics": [
        "computeNPlanSafeT"
      ]
    },
    {
      "page": "computeNPlanSafeZ",
      "title": "Helper function: Computes the planned sample size based on the minimal clinical relevant mean difference, alpha and beta",
      "topics": [
        "computeNPlanSafeZ"
      ]
    },
    {
      "page": "computeStatsForLogrank",
      "title": "Computes the sufficient statistics needed to compute 'logrankSingleZ'",
      "topics": [
        "computeStatsForLogrank"
      ]
    },
    {
      "page": "defineTTestN",
      "title": "Computes a Sequence of (Effective) Sample Sizes",
      "topics": [
        "defineTTestN"
      ]
    },
    {
      "page": "designFreqT",
      "title": "Design a Frequentist T-Test",
      "topics": [
        "designFreqT"
      ]
    },
    {
      "page": "designFreqZ",
      "title": "Design a Frequentist Z-Test",
      "topics": [
        "designFreqZ"
      ]
    },
    {
      "page": "designPilotSafeT",
      "title": "Designs a Safe T-Test Based on Planned Samples nPlan",
      "topics": [
        "designPilotSafeT"
      ]
    },
    {
      "page": "designPilotSafeZ",
      "title": "Designs a Safe Z-Test Based on Planned Samples nPlan",
      "topics": [
        "designPilotSafeZ"
      ]
    },
    {
      "page": "designSafeLogrank",
      "title": "Designs a Safe Logrank Test Experiment",
      "topics": [
        "designSafeLogrank"
      ]
    },
    {
      "page": "designSafeT",
      "title": "Designs a Safe Experiment to Test Means with a T Test",
      "topics": [
        "designSafeT"
      ]
    },
    {
      "page": "designSafeTwoProportions",
      "title": "Designs a Safe Experiment to Test Two Proportions in Stream Data",
      "topics": [
        "designSafeTwoProportions"
      ]
    },
    {
      "page": "designSafeZ",
      "title": "Designs a Safe Z Experiment",
      "topics": [
        "designSafeZ"
      ]
    },
    {
      "page": "extractNameFromArgs",
      "title": "Helper function: Get all names as entered by the user",
      "topics": [
        "extractNameFromArgs"
      ]
    },
    {
      "page": "generateNormalData",
      "title": "Generates Normally Distributed Data Depending on the Design",
      "topics": [
        "generateNormalData"
      ]
    },
    {
      "page": "generateSurvData",
      "title": "Generate Survival Data which Can Be Analysed With the `survival` Package",
      "topics": [
        "generateSurvData"
      ]
    },
    {
      "page": "getArgs",
      "title": "Helper function: Get all arguments as entered by the user",
      "topics": [
        "getArgs"
      ]
    },
    {
      "page": "getNameAlternative",
      "title": "Gets the Label of the Alternative Hypothesis",
      "topics": [
        "getNameAlternative"
      ]
    },
    {
      "page": "getNameTestType",
      "title": "Gets the Label of the Test",
      "topics": [
        "getNameTestType"
      ]
    },
    {
      "page": "isTryError",
      "title": "Checks Whether a Vector of Object Inherits from the Class 'try-error'",
      "topics": [
        "isTryError"
      ]
    },
    {
      "page": "logrankSingleEExact",
      "title": "Helper function computes single component of the exact logrank e-value",
      "topics": [
        "logrankSingleEExact"
      ]
    },
    {
      "page": "logrankSingleZ",
      "title": "Helper function computes single component of the logrank statistic",
      "topics": [
        "logrankSingleZ"
      ]
    },
    {
      "page": "plot.safe2x2Sim",
      "title": "Plots Results of Simulations for Comparing Hyperparameters for Safe Tests of Two Proportions",
      "topics": [
        "plot.safe2x2Sim"
      ]
    },
    {
      "page": "plot.safeTSim",
      "title": "Plots a 'safeTSim' Object",
      "topics": [
        "plot.safeTSim"
      ]
    },
    {
      "page": "plotConfidenceSequenceTwoProportions",
      "title": "Plot bounds of a safe confidence sequence of the difference or log odds ratio for two proportions against the number of data blocks in two data streams ya and yb.",
      "topics": [
        "plotConfidenceSequenceTwoProportions"
      ]
    },
    {
      "page": "plotHistogramDistributionStoppingTimes",
      "title": "Plots the Histogram of Stopping Times",
      "topics": [
        "plotHistogramDistributionStoppingTimes"
      ]
    },
    {
      "page": "plotSafeTDesignSampleSizeProfile",
      "title": "Plots the Sample Sizes Necessary for a Tolerable Alpha and Beta as a Function of deltaMin",
      "topics": [
        "plotSafeTDesignSampleSizeProfile"
      ]
    },
    {
      "page": "print.safe2x2Sim",
      "title": "Prints Results of Simulations for Comparing Hyperparameters for Safe Tests of Two Proportions",
      "topics": [
        "print.safe2x2Sim"
      ]
    },
    {
      "page": "print.safeDesign",
      "title": "Print Method for Safe Tests",
      "topics": [
        "print.safeDesign"
      ]
    },
    {
      "page": "print.safeTest",
      "title": "Print Method for Safe Tests",
      "topics": [
        "print.safeTest"
      ]
    },
    {
      "page": "print.safeTSim",
      "title": "Prints a safeTSim Object",
      "topics": [
        "print.safeTSim"
      ]
    },
    {
      "page": "replicateTTests",
      "title": "Simulate Early Stopping Experiments",
      "topics": [
        "replicateTTests"
      ]
    },
    {
      "page": "returnOne",
      "title": "Auxiliary function for sampling of the logrank simulations to return the integer 1 event per time.",
      "topics": [
        "returnOne"
      ]
    },
    {
      "page": "rLogrank",
      "title": "Randomly samples from a logrank distribution",
      "topics": [
        "rLogrank"
      ]
    },
    {
      "page": "safeLogrankTest",
      "title": "Safe Logrank Test",
      "topics": [
        "safeLogrankTest",
        "safeLogrankTestStat"
      ]
    },
    {
      "page": "safeTTest",
      "title": "Safe Student's T-Test.",
      "topics": [
        "safe.t.test",
        "safeTTest"
      ]
    },
    {
      "page": "safeTTestStat",
      "title": "Computes E-Values Based on the T-Statistic",
      "topics": [
        "safeTTestStat"
      ]
    },
    {
      "page": "safeTTestStatAlpha",
      "title": "safeTTestStat() Subtracted with 1/alpha.",
      "topics": [
        "safeTTestStatAlpha"
      ]
    },
    {
      "page": "safeTTestStatTDensity",
      "title": "safeTTestStat() based on t-densities",
      "topics": [
        "safeTTestStatTDensity"
      ]
    },
    {
      "page": "safeTwoProportionsTest",
      "title": "Perform a Safe Test for Two Proportions with Stream Data",
      "topics": [
        "safe.prop.test",
        "safeTwoProportionsTest"
      ]
    },
    {
      "page": "safeZ10Inverse",
      "title": "Computes the Inverse of the Two-Sided Safe Z-Test",
      "topics": [
        "safeZ10Inverse"
      ]
    },
    {
      "page": "safeZTest",
      "title": "Safe Z-Test",
      "topics": [
        "safe.z.test",
        "safeZTest"
      ]
    },
    {
      "page": "safeZTestStat",
      "title": "Computes E-Values Based on the Z-Statistic",
      "topics": [
        "safeZTestStat"
      ]
    },
    {
      "page": "sampleLogrankStoppingTimes",
      "title": "Simulate stopping times for the exact safe logrank test",
      "topics": [
        "sampleLogrankStoppingTimes"
      ]
    },
    {
      "page": "sampleStoppingTimesSafeT",
      "title": "Simulate stopping times for the safe z-test",
      "topics": [
        "sampleStoppingTimesSafeT"
      ]
    },
    {
      "page": "sampleStoppingTimesSafeZ",
      "title": "Simulate stopping times for the safe z-test",
      "topics": [
        "sampleStoppingTimesSafeZ"
      ]
    },
    {
      "page": "selectivelyContinueTTestCombineData",
      "title": "Selectively Continue Experiments that Did Not Lead to a Null Rejection for a (Safe) T-Test",
      "topics": [
        "selectivelyContinueTTestCombineData"
      ]
    },
    {
      "page": "setSafeStatsPlotOptionsAndReturnOldOnes",
      "title": "Sets 'safestats' Plot Options and Returns the Current Plot Options.",
      "topics": [
        "setSafeStatsPlotOptionsAndReturnOldOnes"
      ]
    },
    {
      "page": "simulate.safeDesign",
      "title": "Simulate Early Stopping Experiments for the T Test",
      "topics": [
        "simulate.safeDesign"
      ]
    },
    {
      "page": "simulateCoverageDifferenceTwoProportions",
      "title": "Simulate the coverage of a safe confidence sequence for differences between proportions for a given distribution and safe design.",
      "topics": [
        "simulateCoverageDifferenceTwoProportions"
      ]
    },
    {
      "page": "simulateIncorrectStoppingTimesFisher",
      "title": "Simulate incorrect optional stopping with fisher's exact test's p-value as the stopping rule.",
      "topics": [
        "simulateIncorrectStoppingTimesFisher"
      ]
    },
    {
      "page": "simulateOptionalStoppingScenarioTwoProportions",
      "title": "Simulate an optional stopping scenario according to a safe design for two proportions",
      "topics": [
        "simulateOptionalStoppingScenarioTwoProportions"
      ]
    },
    {
      "page": "simulateTwoProportions",
      "title": "Compare Different Hyperparameter Settings for Safe Tests of Two Proportions.",
      "topics": [
        "simulateTwoProportions"
      ]
    },
    {
      "page": "tryOrFailWithNA",
      "title": "Tries to Evaluate an Expression and Fails with 'NA'",
      "topics": [
        "tryOrFailWithNA"
      ]
    }
  ],
  "_readme": "https://github.com/alexanderlynl/safestats/raw/HEAD/README.md",
  "_rundeps": [
    "BiasedUrn",
    "boot",
    "cli",
    "contfrac",
    "deSolve",
    "dplyr",
    "elliptic",
    "generics",
    "glue",
    "hypergeo",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "contingency-tables-vignette.Rmd",
      "filename": "contingency-tables-vignette.html",
      "title": "Safe Tests and Confidence Intervals for Tests of Two Proportions: Practical Scenarios",
      "author": "Rosanne Turner, Alexander Ly and Peter Grünwald",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "1. <a name = \"design2x2\"></a>Designing Safe Experiments",
        "Case (I): Designing experiments with the minimal clinically relevant effect size known",
        "Case (II): Minimal clinically relevant effect size unknown, but maximum number of samples known.",
        "Short examples of non-standard design settings",
        "Unequal group sizes",
        "Non-standard Beta priors",
        "Restricting the alternative hypothesis",
        "2. Inference with Safe Tests and <a name = \"optStop2x2\"></a>Optional Stopping",
        "True effect size equals minimal clinically relevant effect size",
        "True effect size larger than the minimal clinically relevant effect size",
        "Data under the null: True effect size is zero, thus, much smaller than the minimal clinically relevant effect size",
        "Classical test \"Fisher's exact test\" under the null with optional stopping",
        "3. <a name = \"optCont2x2\"></a>Optional Continuation for tests of two proportions",
        "4. <a name=\"confInt\"></a>Confidence intervals",
        "Confidence sequence for difference between success rates",
        "Confidence sequence for log of the odds ratio",
        "References"
      ],
      "created": "2022-01-06 16:18:06",
      "modified": "2022-11-23 15:46:42",
      "commits": 4
    },
    {
      "source": "safestats-vignette.Rmd",
      "filename": "safestats-vignette.html",
      "title": "Safe Flexible Hypothesis Tests for Practical Scenarios",
      "author": "Alexander Ly and Rosanne Turner",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "1. <a name = \"designT\">Designing safe t-test experiments</a>",
        "Type I error and type II errors",
        "Case (I): Designing experiments with the minimal clinically relevant effect size known",
        "<a name = powerplotT>Case (II):</a> Minimal clinically relevant effect size unknown, but maximum number of samples known.",
        "2. <a name = \"optStopT\">Inference with safe tests: Optional stopping</a>",
        "Safe tests conserve the type I error rate: Batch analysis",
        "Safe tests allow for early stopping without inflating the type I error rate above the tolerable $\\alpha$-level",
        "Optional stopping does not causes safe tests to over-reject the null, but is problematic for p-values",
        "Safe tests detect the effect early if it is present: deltaTrue equal to deltaMin",
        "Safe tests detect the effect even earlier if it is larger than expected",
        "3. <a name = \"optContT\">Optional Continuation</a>",
        "Optional continuation is problematic for p-values and leads to overinflating the type I error rate",
        "Two ways to optionally continue studies with safe tests",
        "i. Optional continuation by extending the experiment does not result in safe tests exceeding the tolerable $\\alpha$-level",
        "When the effect is present optional continuation results in safe tests correctly rejecting the null",
        "ii. Optional continuation through replication studies",
        "Type I error is guaranteed when multiplying e-values",
        "Multiplying e-values under the alternative",
        "Conclusion"
      ],
      "created": "2020-02-07 23:55:38",
      "modified": "2022-11-23 15:46:42",
      "commits": 10
    }
  ],
  "_score": 5.944482672150168,
  "_indexed": true,
  "_nocasepkg": "safestats",
  "_universes": [
    "alexanderlynl"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-05-14T06:07:54.000Z",
      "distro": "noble",
      "commit": "67b00855feec385c49f437bbae0541ad363673a3",
      "fileid": "0a11f1464305de23962726eaf9735d1178cf349c79761fc51c49233ffdd1a0c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.7",
      "date": "2026-05-14T06:07:55.000Z",
      "distro": "noble",
      "commit": "67b00855feec385c49f437bbae0541ad363673a3",
      "fileid": "2be00873a7ea65250dc5a27ce742db25f6a5cba288c302fd297fd7979d1e97c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.8.7",
      "date": "2026-05-14T06:08:39.000Z",
      "commit": "67b00855feec385c49f437bbae0541ad363673a3",
      "fileid": "b8932c05e852326fc78bba23e7425fcf7e01007e26a71942828d5f63162b5e7e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.8.7",
      "date": "2026-05-14T06:07:30.000Z",
      "commit": "67b00855feec385c49f437bbae0541ad363673a3",
      "fileid": "8ca02e74fb9539c1095d7d30885ebc016da1b4390497504480511f88363e63d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.8.7",
      "date": "2026-05-14T06:07:35.000Z",
      "commit": "67b00855feec385c49f437bbae0541ad363673a3",
      "fileid": "7bfed1e41c05ce73e8f41561e86bd9d3696a1067f9eee8605b9bd519c8cacfde",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.8.7",
      "date": "2026-05-14T06:06:51.000Z",
      "commit": "67b00855feec385c49f437bbae0541ad363673a3",
      "fileid": "7335ddc0a0c56ad440f058e5e95a65747b2850462b36ded2feb336d0a34ff7f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.8.7",
      "date": "2026-05-14T06:06:56.000Z",
      "commit": "67b00855feec385c49f437bbae0541ad363673a3",
      "fileid": "f0759472d173ebfe8023ecb1ce7cf03621544e9f96159fe452c8b456d36d3ef4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.8.7",
      "date": "2026-05-22T09:23:42.000Z",
      "commit": "67b00855feec385c49f437bbae0541ad363673a3",
      "fileid": "ac874456225db676c83cb5d370ceb5fe41620e280dd61aa162df74332410655d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/alexanderlynl/actions/runs/25844631098"
    }
  ]
}