Man pages for safestats
Safe Anytime-Valid Inference

addCiteAdd a savi reference
ceilA ceiling function with a tolerance at the 13th digit
checkAndReturnEsMinParameterSideChecks consistency between the sided of the hypothesis and...
checkAndReturnNPlanCheck consistency between nPlan and the testType for one and...
checkAndReturnsEsMinParameterSideChecks consistency between the sided of the hypothesis and...
checkDoubleArgumentsDesignObjectHelper function to check whether arguments are specified in a...
compute1F1AllVersionsComputes 6 equivalent forms of the confluent hypergeometric...
computeBetaBatchSaviZHelper function: Computes 1-power based on meanDiffTrue and...
computeBetaBootstrapperHelper function to compute uncertainty regarding nPlan...
computeBootObjComputes the bootObj for sequential sampling procedures...
computeConfidenceBoundForLogOddsTwoProportionsEstimate an upper or lower bound for a savi confidence...
computeConfidenceBoundsForDifferenceTwoProportionsEstimate Lower and Upper Bounds on the Confidence Sequence...
computeConfidenceIntervalTHelper function: Computes the savi confidence sequence for...
computeConfidenceIntervalZHelper function: Computes the savi confidence sequence for a...
computeConjugateCredibleIntervalTwoSampleTComputes the credible interval of a two-sample t-test based...
computeLogrankBetaFromHelper function: Computes the type II error under optional...
computeLogrankNEventsHelper function: Computes the planned sample size based on...
computeLogrankZHelper function to computes the logrank statistic for 'Surv'...
computeMinEsBatchSaviTComputes the smallest detectable deltaMin with power...
computeMinEsBatchSaviZComputes the meanDiffMin that is detectable with probability...
computeNEffHelp function to compute the effective sample size based on a...
computeNPlanBatchSaviTHelper function: Computes the planned sample size for the...
computeNPlanBatchSaviZHelper function: Computes nPlan based on meanDiffTrue, alpha...
computeNPlanBootstrapperHelper function to compute uncertainty regarding nPlan...
computeNPlanSaviTHelper function: Computes nPlan based on deltaMin and power
computeNPlanSaviZHelper function: Computes nPlan based on meanDiffTrue, alpha...
computePowerBootstrapperHelper function to compute uncertainty regarding nPlan...
computePowerSaviTHelper function: Computes the power of the saviTTest based on...
computePowerSaviZHelper function: Computes the power based on meanDiffTrue and...
computeStatsForLogrankComputes the sufficient statistics needed to compute...
computeZTSumStatsHelper function to compute the relevant summary statistics in...
conjugateBfTStatA "subjective" Bayes factor for the two-sample T-test
conjugateBfTStatOldA "subjective" Bayes factor for the two-sample T-test
constructSampleStoppingTimesListConstruct a list to be set in the sampleStoppingTimes......
constructSaviDesignObjConstruct a savi design object to be set in the design...
constructSaviTestObjConstruct a savi test object to be set in the savi testing...
defineTTestNComputes a Sequence of (Effective) Sample Sizes of Z- and...
designFreqTDesign a Frequentist T-Test
designFreqZDesign a Frequentist Z-Test
designSavi1aHelperHelper function that extract the results for the design...
designSavi2HelperHelper function that extract the results for the design...
designSaviLogrankDesigns a Safe Anytime-Valid Logrank Test Experiment
designSaviLogrank2WantBetaHelper function to design a savi logrank test (output beta)
designSaviTDesign a Safe Anytime-Valid Experiment to Test Means with a Z...
designSaviT1aWantNPlanHelper function to designing a savi T-test (output nPlan)
designSaviT2WantPowerHelper function to designing a savi T-test (output power)
designSaviT3bWantParameterHelper function to designing a savi T-test (output deltaMin...
designSaviT3WantEsMinHelper function to designing a Savi T-test (output esMin)
designSaviTwoProportionsDesigns a Savi Experiment to Test Two Proportions in Stream...
designSaviZDesign a Safe Anytime-Valid Experiment to Test Means with a Z...
designSaviZ1aWantNPlanHelper function to designing a savi Z-test (output nPlan)
designSaviZ2WantPowerHelper function to designing a Z-test (output power)
designSaviZ3bWantParameterHelper function to designing a Z-test (output meanDiffMin...
designSaviZ3WantEsMinHelper function to designing a Z-test (output esMin)
extractNameFromArgsHelper function: Get all names as entered by the user
generateNormalDataGenerates Normally Distributed Data Depending on the Design
generateSurvDataGenerate Survival Data which Can Be Analysed With the...
getArgsHelper function: Get all arguments as entered by the user
getNameAlternativeGets the Label of the Alternative Hypothesis
getNameTestTypeGets the Label of the Test
isTryErrorChecks Whether a Vector of Object Inherits from the Class...
lcoshLogarithmic hyperbolic cosine
logrankSingleEExactHelper function computes single component of the exact...
logrankSingleZHelper function computes single component of the logrank...
makeRunningIntersectionHelper function to create running intersections
matchAlphaRelevanceWithChecks and outputs a threshold for a minimal efficacy...
matchEParameterWithMatch the parameter of a savi z or t-test
matchEsMinWithMatch the meanDiffMin of a savi z-test
matchPowerWithHelper function to check whether the power or beta (redundant...
matchRelevanceParameterWithMatch the parameter of a minimal efficacy savi z-test
plotConfidenceSequenceTwoProportionsPlot bounds of a savi confidence sequence of the difference...
plotHistogramDistributionStoppingTimesPlots the Histogram of Stopping Times
plot.savi2x2SimPlots Results of Simulations for Comparing Hyperparameters...
plot.saviDesignPlots the saviDesign object for designs with sample paths
plot.saviTestPlots the saviTest object for sequential analyses
print.savi2x2SimPrints Results of Simulations for Comparing Hyperparameters...
print.saviDesignPrint Method for Savi Test Objects
print.saviTestPrint Method for Savi Test Objects
pValueZTestComputes the p-value for the Z-test
returnOneAuxiliary function for sampling of the logrank simulations to...
rLogrankRandomly samples from a logrank distribution
sampleLogrankStoppingTimesSimulate stopping times for the exact savi logrank test
sampleStoppingTimesSaviTSimulate stopping times for the savi T-test
sampleStoppingTimesSaviZSimulate stopping times for the savi Z-test
saviLogrankTestSafe Anytime-Valid Logrank Test
saviTTestSafe Anytime-Valid Student's T-Test.
saviTTestStatComputes E-Values Based on the T-Statistic
saviTwoProportionsTestPerform a Savi Test for Two Proportions with Stream Data
saviZTestSafe Anytime-Valid Z-Test
saviZTestStatComputes E-Values Based on the Z-Statistic
selectivelyContinueZOrTTestDataHelper function to demonstrate the selective continuation of...
setLowAndHighEsTrueZHelper function to determine the lower and upper bound for...
setSafeStatsPlotOptionsAndReturnOldOnesSets 'safestats' Plot Options and Returns the Current Plot...
simulateCoverageDifferenceTwoProportionsSimulate the coverage of a savi confidence sequence for...
simulateIncorrectStoppingTimesFisherSimulate incorrect optional stopping with fisher's exact...
simulateOptionalStoppingScenarioTwoProportionsSimulate an optional stopping scenario according to a savi...
simulateTwoProportionsCompare Different Hyperparameter Settings for Savi Tests of...
subjectiveBfZStatA subjective Bayes factor for the two-sample Z-test
tryOrFailWithNATries to Evaluate an Expression and Fails with 'NA'
tTestWidthDerivativeInternal function to solve the smallest width of an eGauss...
zMargLogarithmic marginal likelihood of the normal with conjugate...
safestats documentation built on Sept. 6, 2026, 1:06 a.m.