View source: R/calibrate_null_correction.R
| predict_fpr_corrected | R Documentation |
Uses a calibrated L_{\text{eff}} model to predict the
procedure-level FPR at arbitrary sample sizes and thresholds.
predict_fpr_corrected(
calibration,
theta,
d_eff,
c1,
c2,
N,
effect_scale = "ratio"
)
calibration |
An |
theta |
Numeric. True treatment effect (1.0 for null). |
d_eff |
Numeric. Effective information in the subgroup. |
c1 |
Numeric. Screening threshold. |
c2 |
Numeric. Consistency threshold. |
N |
Integer. Total sample size. |
effect_scale |
Character. |
A list with components:
Per-subgroup detection probability.
Effective number of candidates at this N.
Corrected procedure-level FPR.
cal <- calibrate_L_eff(
N = c(200, 500, 700, 1000),
P1 = c(0.152, 0.109, 0.091, 0.071),
sim_fpr = c(0.185, 0.220, 0.270, 0.280)
)
# Predict FPR at N = 800
d <- d_eff_binary(n_sg = round(0.30 * 800), p_event = 0.30)
predict_fpr_corrected(cal, theta = 1.0, d_eff = d,
c1 = 1.25, c2 = 1.25, N = 800)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.