View source: R/theoretical_power.R
optimize_power_norm | R Documentation |
Function that finds the parameters, M and theta_0, of our test that yield the highest power for a given combination of n, the effect size, and epsilon
optimize_power_norm( effect_size, epsilon, n, alpha = 0.05, d = 1, n_zeros = 0, M_max = n )
effect_size |
The quotient of the parameter of interest (mu) and the standard deviation of the noise (sigma). |
epsilon |
The privacy parameter. |
n |
The number of observations (number of rows in the database). |
alpha |
The significance level. Defaults to 0.05. |
d |
The number of dimensions (number of columns in the database). Defaults to 1. |
n_zeros |
The number of entries of the alternative distribution with mean zero. Defaults to 0. |
M_max |
The maximum M to search over. The optimizer will try all integers from 1 to M_max |
The output will be a list with the achievable power and the corresponding two parameter values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.