View source: R/theoretical_power.R
optimize_power_ANOVA | 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_ANOVA( n, effect_size = 1, epsilon = 1, alpha = 0.05, groups = 3, M_max = floor(n/groups/2) )
n |
The number of observations (number of rows in the database). Should be a multiple of three. |
effect_size |
The ratio of the between group variance to the within group variance. Defaults to 1, as in Couch et al. |
epsilon |
The privacy parameter. Defaults to 1, as in Couch et al. |
alpha |
The significance level. Defaults to 0.05. |
groups |
The number of groups in each subsample for ANOVA. |
M_max |
The maximum M to search over. |
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.