p_val_Barr: Barrientos p-value

View source: R/Barrientos_implementation.R

p_val_BarrR Documentation

Barrientos p-value

Description

Function that computes the p-values from a running of the test proposed by Barrientos et al. for several choices of the truncation parameter.

Usage

p_val_Barr(df, groups, M, a_vector, epsilon, cdfs)

Arguments

df

A dataframe with the response variable as the first column and the remaining columns explanatory variables.

groups

A vector with the group number of each observation.

M

The number of subsamples.

a_vector

Vector of values of the truncation parameter.

epsilon

The privacy parameter.

cdfs

List of the CDFs for each level of truncation. Must be of equal length to 'a_vector'.

Value

The output will be a vector of length 'a_vector', where each entry correpsonds to the p-value from the test with that level of truncation.


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