View source: R/theoretical_power.R
theoretical_power | R Documentation |
Function that computes the power of our test for a given a design matrix and a given partitioning into subsamples.
theoretical_power( theta_0, M, effect_size, epsilon, alpha = 0.05, X = NULL, groups = NULL, n = NULL, d = 1, n_zeros = 0, nsims = NULL, test = "Linear Regression", ncores = 1 )
theta_0 |
The threshold. |
M |
The number of subsamples to partition the data into. |
effect_size |
The quotient of the parameter of interest (beta or mu) and the standard deviation of the noise (sigma). For ANOVA, the ratio of the between group variance to the within group variance. |
epsilon |
The privacy parameter. |
alpha |
The significance level, defaults to 0.05 |
X |
For regression only. A design matrix with at least two explanatory variables. |
groups |
For regression, a vector of length |
n |
For normal or ANOVA. The number of observations (number of rows in the database). |
d |
For normal test only. The number of dimensions (number of columns in the database). |
n_zeros |
For normal test only. The number of entries of the alternative distribution with mean zero. Defaults to 0. |
nsims |
The number of draws from the tulap and binomial with which to compute the reference distribution. (No Longer Used) |
test |
The test to compute the power of. Either "Linear Regression", "Normal", or "ANOVA" |
ncores |
The number of cores to use for the Poisson-binomial pmf computation (No Longer Used) |
The output will be a double between 0 and 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.