View source: R/Barrientos_implementation.R
p_val_Barr | R Documentation |
Function that computes the p-values from a running of the test proposed by Barrientos et al. for several choices of the truncation parameter.
p_val_Barr(df, groups, M, a_vector, epsilon, cdfs)
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'. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.