View source: R/truefind_asymptotic_glm.R
| d_eff_binary | R Documentation |
Computes d_{\text{eff}} = n_H \bar{p} (1 - \bar{p}) from the
Fisher information of the logistic regression treatment coefficient.
d_eff_binary(n_sg, p_event)
n_sg |
Integer. Subgroup sample size. |
p_event |
Numeric. Event probability (0–1), averaged across arms. |
For the model \text{logit}(p_i) = \beta_0 + \beta V_i with
balanced arms (n_1 = n_0 = n_H/2):
\text{Var}(\hat\beta) = \frac{4}{n_H \bar{p}(1-\bar{p})}
Numeric. Effective information.
d_eff_binary(n_sg = 100, p_event = 0.30)
# 21
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.