practical_power_ANOVA: Find the power of our test for an ANOVA in a practical...

View source: R/theoretical_power.R

practical_power_ANOVAR Documentation

Find the power of our test for an ANOVA in a practical setting

Description

Function that finds the parameters, M and theta_0, of our test that yield high power for a given combination of n and epsilon in a practical setting where the effect size is not known and then computes the power at a given effect size.

Usage

practical_power_ANOVA(
  effect_size,
  epsilon,
  n,
  effect_size_grid = seq(0, 3, 0.2),
  rho = 0.8,
  alpha = 0.05,
  groups = 3,
  M_start = min(12, floor(n/2/groups)),
  alpha0_start = 0.2,
  M_max = floor(n/2/groups)
)

Arguments

effect_size

The ratio of the between group variance to the within group variance.

epsilon

The privacy parameter.

n

The number of observations (number of rows in the database).

effect_size_grid

Grid of effect sizes to search over

rho

The desired power threshold

alpha

The significance level. Defaults to 0.05.

groups

The number of groups in each subsample for ANOVA.

M_start

Starting value of M

alpha0_start

Starting value of alpha0

M_max

The maximum M to search over.


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