DP_Binom_test_twoside: Two-sided private binomial hypothesis test.

View source: R/binomial_hypothesis_test.R

DP_Binom_test_twosideR Documentation

Two-sided private binomial hypothesis test.

Description

This function takes in a privatized estimate of a draw from a binomial distribution and performs a two-sided hypothesis test. Created by Canyon.

Usage

DP_Binom_test_twoside(n, theta_0, epsilon, Z)

Arguments

n

number of trials.

theta_0

null hypothesis.

epsilon

privacy parameter.

Z

privatized number of successes.

Value

outputs the p-value of the hypothesis test.


diff-priv-ht/nonpmRegPkg documentation built on Feb. 6, 2023, 5:22 p.m.