dpPropTest: DP Population Proportion Test

Description Usage Arguments Value Examples

View source: R/dpPropTest.R

Description

DP Population Proportion Test

Usage

1
dpPropTest(Z, size, theta, b, q, alternative, alpha)

Arguments

Z

A Binomial sample with Tulap noise

size

The number of trials in Binomial distribution (parameter n in Binomial(n, θ))

theta

The success probability for each trial (parameter θ in Binomial(n, θ))

b

Discrete Laplace noise parameters, obtained by exp(-ε)

q

The truncated quantiles

alternative

The type of alternative hypothesis, must be "two.sided", "less", or "greater"

alpha

The confidence level of the confidence interval

Value

A table summary of the sample estimate, the p-value of the test, and the confidence interval of θ

Examples

1
dpPropTest(9, 30, 0.5, exp(-1), 0.05, "less", 0.05)

ttran2401/binomialDP documentation built on July 7, 2020, 1:18 a.m.