View source: R/truefind_asymptotic_glm.R
| d_eff_count | R Documentation |
Computes d_{\text{eff}} = D / \phi where D is the total
expected events and \phi is the dispersion parameter.
d_eff_count(
n_sg = NULL,
event_rate = NULL,
total_events = NULL,
dispersion = 1
)
n_sg |
Integer. Subgroup sample size. Required if
|
event_rate |
Numeric. Mean events per patient. Required if
|
total_events |
Numeric. Total observed events |
dispersion |
Numeric. Overdispersion parameter (1.0 for Poisson, greater than 1 for quasi-Poisson). Default: 1.0. |
For Poisson regression with log-offset:
\text{Var}(\hat\beta) = \phi \left(\frac{1}{D_0} + \frac{1}{D_1}\right)
\approx \frac{4\phi}{D}
Under proportional hazards, D = d (Cox events), so
d_{\text{eff}}^{\text{Poisson}} = d_{\text{eff}}^{\text{Cox}}
(Laird and Olivier, 1981).
Numeric. Effective information.
# From total events
d_eff_count(total_events = 55)
# From sample size and rate
d_eff_count(n_sg = 100, event_rate = 0.8)
# Quasi-Poisson with overdispersion
d_eff_count(total_events = 55, dispersion = 1.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.