View source: R/truefind_asymptotic_glm.R
| d_eff_continuous | R Documentation |
Computes d_{\text{eff}} = n_H / \sigma_Y^2 from the
Fisher information of the Gaussian linear model treatment coefficient.
d_eff_continuous(n_sg, sigma_y)
n_sg |
Integer. Subgroup sample size. |
sigma_y |
Numeric. Residual standard deviation of the outcome. |
For the model Y_i = \beta_0 + \beta V_i + \epsilon_i,
\epsilon_i \sim N(0, \sigma^2), with balanced arms:
\text{Var}(\hat\beta) = \frac{4\sigma^2}{n_H}
Numeric. Effective information.
d_eff_continuous(n_sg = 100, sigma_y = 1.5)
# 44.4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.