Compute Detection Probability for Single Theta (Internal)
compute_detection_probability_single(
theta,
n_sg,
prop_cens,
k_avg,
k_ind,
method,
n_mc,
tol
)Numeric probability
Numeric. True hazard ratio in the subgroup. Can be a vector for computing detection probability across multiple HR values.
Integer. Subgroup sample size.
Numeric. Proportion censored (0-1). Default: 0.3
Log of hr_threshold
Log of hr_consistency
Character. Integration method: "cubature" (recommended for accuracy) or "monte_carlo" (faster for exploration). Default: "cubature"
Integer. Number of Monte Carlo samples if method = "monte_carlo". Default: 100000
Numeric. Relative tolerance for cubature integration. Default: 1e-4