| Add a savi reference | addCite |
| A ceiling function with a tolerance at the 13th digit | ceil |
| Checks consistency between the sided of the hypothesis and the minimal clinically relevant effect size or savi test defining parameter. Throws an error if the one-sided hypothesis is incongruent with the | checkAndReturnEsMinParameterSide |
| Check consistency between nPlan and the testType for one and two-sample z and t-tests | checkAndReturnNPlan |
| 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 | checkAndReturnsEsMinParameterSide |
| Helper function to check whether arguments are specified in a function at a higher level and already provided in the design object. | checkDoubleArgumentsDesignObject |
| Computes 6 equivalent forms of the confluent hypergeometric function 1f1 | compute1F1AllVersions |
| Helper function: Computes 1-power based on meanDiffTrue and nPlan | computeBetaBatchSafeZ computeBetaBatchSaviZ |
| Helper function to compute uncertainty regarding nPlan estimates | computeBetaBootstrapper |
| Helper function: Computes the power of the saviTTest based on deltaMin and nPlan | computeBetaSafeT computePowerSaviT |
| Helper function: Computes the power based on meanDiffTrue and nPlan | computeBetaSafeZ computePowerSaviZ |
| Computes the bootObj for sequential sampling procedures regarding nPlan, beta, the implied target | computeBootObj |
| Estimate an upper or lower bound for a savi confidence sequence on the logarithm of the odds ratio for two proportions. | computeConfidenceBoundForLogOddsTwoProportions |
| Estimate Lower and Upper Bounds on the Confidence Sequence (Interval) for the Difference Divergence Measure for Two Proportions | computeConfidenceBoundsForDifferenceTwoProportions |
| Helper function: Computes the savi confidence interval for logOdds | computeConfidenceInterval2x2LogOdds |
| Helper function: Computes the savi confidence interval for propDiff | computeConfidenceInterval2x2PropDiff |
| Helper function: Computes the savi confidence sequence for the mean in a T-test | computeConfidenceIntervalT |
| Helper function: Computes the savi confidence sequence for a Z-test | computeConfidenceIntervalZ |
| Helper function: Computes the savi confidence sequence for logOdds | computeConfidenceSequence2x2LogOdds |
| Helper function: Computes the savi confidence sequence for propDiff | computeConfidenceSequence2x2PropDiff |
| Computes the credible interval of a two-sample t-test based on conjugate priors | computeConjugateCredibleIntervalTwoSampleT |
| Computes the smallest detectable propDiffMin with power probability, for the provided number of blocks | computeEsMinSavi2x2 |
| Helper function: Computes the type II error under optional stopping based on the minimal clinically relevant hazard ratio and the maximum number of nEvents. | computeLogrankBetaFrom |
| Helper function: Computes the planned sample size based on the minimal clinical relevant hazard ratio, alpha and beta under optional stopping. | computeLogrankNEvents |
| Helper function to computes the logrank statistic for 'Surv' objects of type "right" and "counting" with the hypergeometric variance. | computeLogrankZ |
| Computes the meanDiffMin that is detectable with probability "power" for given nPlan | computeMinEsBatchSafeZ computeMinEsBatchSaviZ |
| Computes the smallest detectable deltaMin with power probability, for the provided sample size | computeMinEsBatchSaviT |
| Help function to compute the effective sample size based on a length 2 vector of samples | computeNEff |
| Helper function: Computes nPlan based on meanDiffTrue, alpha and power. | computeNPlanBatchSafeZ computeNPlanBatchSaviZ |
| Helper function: Computes the planned sample size for the savi T-test based deltaMin, alpha and power | computeNPlanBatchSaviT |
| Helper function to compute uncertainty regarding nPlan estimates | computeNPlanBootstrapper |
| Helper function: Computes nPlan based on deltaMin and power | computeNPlanSafeT computeNPlanSaviT |
| Helper function: Computes nPlan based on meanDiffTrue, alpha and power | computeNPlanSafeZ computeNPlanSaviZ |
| Helper function: Computes nBlocksPlan based on propDiffMin, alpha and power | computeNPlanSavi2x2 |
| Helper function to compute uncertainty regarding nPlan estimates | computePowerBootstrapper |
| Helper function: Computes the power of the savi 2x2 test based on propDiffMin and nBlocks | computePowerSavi2x2 |
| Computes the sufficient statistics needed to compute 'logrankSingleZ' | computeStatsForLogrank |
| Helper function to compute the relevant summary statistics in z and t-tests | computeZTSumStats |
| A "subjective" Bayes factor for the two-sample T-test | conjugateBfTStat |
| A "subjective" Bayes factor for the two-sample T-test | conjugateBfTStatOld |
| Construct a savi design object to be set in the design function | constructSafeDesignObj constructSaviDesignObj |
| Construct a savi test object to be set in the savi testing function | constructSafeTestObj constructSaviTestObj |
| Construct a list to be set in the sampleStoppingTimes... function | constructSampleStoppingTimesList |
| Computes a Sequence of (Effective) Sample Sizes of Z- and T-Tests | defineTTestN |
| Design a Frequentist T-Test | designFreqT |
| Design a Frequentist Z-Test | designFreqZ |
| Helper function that extract the results for the design scenario 1a: Target nPlan | designSafe1aHelper designSavi1aHelper |
| Helper function that extract the results for the design scenario 1a: Target nPlan | designSafe2Helper designSavi2Helper |
| Designs a Safe Anytime-Valid Logrank Test Experiment | designSafeLogrank designSaviLogrank |
| Helper function to design a savi logrank test (output beta) | designSafeLogrank2WantBeta designSaviLogrank2WantBeta |
| Design a Safe Anytime-Valid Experiment to Test Means with a Z Test | computeMinEsBatchSafeT computeNPlanBatchSafeT designSafeT designSafeT2WantBeta designSafeT3bWantParameter designSafeT3WantEsMin designSaviT |
| Helper function to designing a savi T-test (output nPlan) | designSafeT1aWantNPlan designSaviT1aWantNPlan |
| Designs a Savi Experiment to Test Two Proportions in Stream Data | designSafeTwoProportions designSaviTwoProportions |
| Design a Safe Anytime-Valid Experiment to Test Means with a Z Test | designSafeZ designSaviZ |
| Helper function to designing a savi Z-test (output nPlan) | designSafeZ1aWantNPlan designSaviZ1aWantNPlan |
| Helper function to designing a Z-test (output power) | designSafeZ2WantBeta designSaviZ2WantPower |
| Helper function to designing a Z-test (output meanDiffMin based on the shortest interval at nPlan) | designSafeZ3bWantParameter designSaviZ3bWantParameter |
| Helper function to designing a Z-test (output esMin) | designSafeZ3WantEsMin designSaviZ3WantEsMin |
| Design a Safe Anytime-Valid Experiment to Test Two Proportions | designSavi2x2 |
| Helper function to designing a savi T-test (output power) | designSaviT2WantPower |
| Helper function to designing a savi T-test (output deltaMin based on the shortest interval at nPlan) | designSaviT3bWantParameter |
| Helper function to designing a Savi T-test (output esMin) | designSaviT3WantEsMin |
| Helper function: Get all names as entered by the user | extractNameFromArgs |
| Log partition function of Fisher's noncentral hypergeometric distribution | fnchLogPartition |
| Generates Normally Distributed Data Depending on the Design | generateNormalData |
| Generate Survival Data which Can Be Analysed With the 'survival' Package | generateSurvData |
| Helper function: Get all arguments as entered by the user | getArgs |
| Gets the Label of the Alternative Hypothesis | getNameAlternative |
| Gets the Label of the Test | getNameTestType |
| Checks Whether a Vector of Object Inherits from the Class 'try-error' | isTryError |
| Logarithmic hyperbolic cosine | lcosh |
| Plain eGauss e-process for logOdds | logEValueVec2x2LogOddsEGauss |
| Plain grow e-process for logOdds | logEValueVec2x2LogOddsGrow |
| Plain eBeta e-process for propDiff | logEValueVec2x2PropDiffEBeta |
| Plain grow e-process for propDiff | logEValueVec2x2PropDiffGrow |
| Conditional log likelihood of 2x2 tables at one logOdds | logLikelihoodFNCH |
| Helper function computes single component of the exact logrank e-value | logrankSingleEExact |
| Helper function computes single component of the logrank statistic | logrankSingleZ |
| Helper function to create running intersections | makeRunningIntersection |
| Checks and outputs a threshold for a minimal efficacy analysis | matchAlphaRelevanceWith |
| Match the parameter of a savi z or t-test | matchEParameterWith |
| Match the meanDiffMin of a savi z-test | matchEsMinWith |
| Helper function to check whether the power or beta (redundant now) argument is given | matchPowerWith |
| Match the parameter of a minimal efficacy savi z-test | matchRelevanceParameterWith |
| Plots Results of Simulations for Comparing Hyperparameters for Savi Tests of Two Proportions | plot.safe2x2Sim plot.savi2x2Sim |
| Plots the saviDesign object for designs with sample paths | plot.safeDesign plot.saviDesign |
| Plots the saviTest object for sequential analyses | plot.safeTest plot.saviTest |
| Plot bounds of a savi 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. | plotConfidenceSequenceTwoProportions |
| Plots the Histogram of Stopping Times | plotHistogramDistributionStoppingTimes |
| Predictive Beta posterior means of thetaA and thetaB | predictiveThetas2x2 |
| Prints Results of Simulations for Comparing Hyperparameters for Savi Tests of Two Proportions | print.safe2x2Sim print.savi2x2Sim |
| Print Method for Savi Test Objects | print.safeDesign print.saviDesign |
| Print Method for Savi Test Objects | print.safeTest print.saviTest |
| Computes the p-value for the Z-test | pValueFromZStat pValueZTest |
| Auxiliary function for sampling of the logrank simulations to return the integer 1 event per time. | returnOne |
| Randomly samples from a logrank distribution | rLogrank |
| Safe Anytime-Valid Logrank Test | safeLogrankTest safeLogrankTestStat saviLogrankTest saviLogrankTestStat |
| Safe Anytime-Valid Student's T-Test. | safe.t.test safeTTest safeTTest.default safeTTest.formula safeTTestStat safeTTestStatNEffNu safeTTestStatNEffNuMom safeTTestStatTDensity savi.t.test saviTTest saviTTest.default saviTTest.formula |
| Perform a Savi Test for Two Proportions with Stream Data | safe.prop.test safeTwoProportionsTest savi.prop.test saviTwoProportionsTest |
| Safe Anytime-Valid Z-Test | safe.z.test safeZTest safeZTest.default safeZTest.formula savi.z.test saviZTest saviZTest.default saviZTest.formula |
| Computes E-Values Based on the Z-Statistic | safeZTestStat saviRelevanceZStat saviZTestStat |
| Simulate stopping times for the exact savi logrank test | sampleLogrankStoppingTimes |
| Simulate stopping times for the savi T-test | sampleStoppingTimesSafeT sampleStoppingTimesSaviT |
| Simulate stopping times for the savi Z-test | sampleStoppingTimesSafeZ sampleStoppingTimesSaviZ |
| Simulate stopping times for the savi 2x2 test | sampleStoppingTimesSavi2x2 |
| Safe Anytime-Valid Test of Two Proportions | savi2x2TestStat |
| UMP conditional e-value of one 2x2 table | savi2x2TestStatUmp |
| Safe Anytime-Valid One-Way Anova | saviAnovaOneB |
| Safe Anytime-Valid One-Way Anova based on summary statistics | saviAnovaStat |
| Computes E-Values Based on the T-Statistic | saviRelevanceTStatNEffNu saviTTestStat saviTTestStatNEffNu saviTTestStatNEffNuGrow saviTTestStatNEffNuMom saviTTestStatTDensity |
| Helper function to demonstrate the selective continuation of paired z-tests | selectivelyContinueZOrTTestData |
| Helper function to determine the lower and upper bound for the search space for standardised meanDiffMin | setLowAndHighEsTrueZ |
| Sets 'safestats' Plot Options and Returns the Current Plot Options. | setSafeStatsPlotOptionsAndReturnOldOnes |
| Simulate the coverage of a savi confidence sequence for differences between proportions for a given distribution and savi design. | simulateCoverageDifferenceTwoProportions |
| Simulate incorrect optional stopping with fisher's exact test's p-value as the stopping rule. | simulateIncorrectStoppingTimesFisher |
| Simulate an optional stopping scenario according to a savi design for two proportions | simulateOptionalStoppingScenarioTwoProportions |
| Compare Different Hyperparameter Settings for Savi Tests of Two Proportions. | simulateTwoProportions |
| Reverse information projection onto a fixed propDiff | solveRIPr2x2PropDiff |
| Uniformly most powerful log odds ratio of a one-sided conditional test | solveUmpLogOdds |
| Worst-case baseline of the propDiff grow test | solveWorstCaseTheta2x2PropDiff |
| A subjective Bayes factor for the two-sample Z-test | subjectiveBfZStat |
| Tries to Evaluate an Expression and Fails with 'NA' | tryOrFailWithNA |
| Internal function to solve the smallest width of an eGauss t-test | tTestWidthDerivative |
| Logarithmic marginal likelihood of the normal with conjugate priors | zMarg |