public_power_lm: Linear regression public power

View source: R/public_test_power.R

public_power_lmR Documentation

Linear regression public power

Description

Function that computes the power of public linear regression for a given design matrix and effect size.

Usage

public_power_lm(X, effect_size, alpha)

Arguments

X

A design matrix for a regression. Must have at least two columns.

effect_size

The quotient of the parameter of interest (beta) and the standard deviation of the noise (sigma).

alpha

The significance level.

Value

The output will be a double between 0 and 1.


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